Forum Moderators: open

Message Too Old, No Replies

problems with language character

special language characters

         

avlisodraude

7:58 pm on Oct 14, 2009 (gmt 0)

10+ Year Member



Hello,
I have the following problem and I hope someone could help me.
I am using jquery autocomplete plugin.
The problem is that I am loading a javascript array with the data to be hinted (completed).
Some words have special character (specifically Skarsterlān). When I save that word using html special character as Skarsterlân , the word is hinted into the field as it should (Skarsterlān), but when I select that word, it shows as Skarsterlân .

I tried the other way around and the problem reverts (it appears hinted as Skarsterl�n) and after being selected it appears as Skarsterl�n.

Did someone knows a workaround for this problem. I would really appreciate some help in this issue.

Best regards.

whoisgregg

9:36 pm on Oct 29, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, avlisodraude!

Instead of using htmlspecialchars(), you could instead serve your data using UTF-8 as the actual characters.