Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7506881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:22:37+00:00 2026-05-29T22:22:37+00:00

I need to store special characters and symbols into mysql database. So either I

  • 0

I need to store special characters and symbols into mysql database. So either I can store it as it is like ‘ü’ or convert it to html code such as ‘ü’

I am not sure which would be better.

Also I am having symbols like ‘♥’, ‘„’ .

Please suggest which one is better? Also suggest if there is any alternative method.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:22:38+00:00Added an answer on May 29, 2026 at 10:22 pm

    HTML entities have been introduced years ago to transport character information over the wire when transportation was not binary safe and for the case that the user-agent (browser) did not support the charset encoding of the transport-layer or server.

    As a HTML entity contains only very basic characters (&, ;, a-z and 0-9) and those characters have the same binary encoding in most character sets, this is and was very safe from those side-effects.

    However when you store something in the database, you don’t have these issues because you’re normally in control and you know what and how you can store text into the database.

    For example, if you allow Unicode for text inside the database, you can store all characters, none is actually special. Note that you need to know your database here, there are some technical details you can run into. Like you don’t know the charset encoding for your database connection so you can’t exactly tell your database which text you want to store in there. But generally, you just store the text and retrieve it later. Nothing special to deal with.

    In fact there are downsides when you use HTML entities instead of the plain character:

    • HTML entities consume more space: ü is much larger than ü in LATIN-1, UTF-8, UTF-16 or UTF-32.
    • HTML entities need further processing. They need to be created, and when read, they need to be parsed. Imagine you need to search for a specific text in your database, or any other action would need additional handling. That’s just overhead.

    The real fun starts when you mix both concepts. You come to a place you really don’t want to go into. So just don’t do it because you ain’t gonna need it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some html code I want to store in a database. I need
I need to store products for an e-commerce solution in a database. Each product
I need to store database passwords in a config file. For obvious reasons, I
I need to store a special cookies that is coming from some non-django applications.
I need to store much strings in RAM. But they do not contain special
I need to store files into the common desktop on Windows. The application is
I need to put a JSON object into an attribute on an HTML element.
I'm parsing command sequence strings and need to convert each string into a string[]
I have id values for products that I need store. Right now they are
I need to store phone numbers in a table. Please suggest which datatype should

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.