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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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