javascript - Force display text from Unicode in input field -
this question has answer here:
- how decode html entities using jquery? 17 answers
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.
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
Post a Comment