javascript - Force display text from Unicode in input field -


this question has answer here:

we doing ajax call retrieve database. since our clients may use different languages encode unicode store in database (saves worrying collations , such). when fetch such content displayed in input text field displaying unicode codes. checked html 4 documentation input , value cdata tells me unicode should displayed character.
screen shot attached can see not case, i'm wondering if there way "force" behavior.

alt text

since our clients may use different languages encode ascii store in database (saves worrying collations , such).

imho storing html entities database bad approach. recommend using utf-8 encoding everywhere. save worrying collations , such.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -