Characters with jquery json

Posted by Mikk on Stack Overflow See other posts from Stack Overflow or by Mikk
Published on 2010-03-16T11:54:54Z Indexed on 2010/03/16 12:16 UTC
Read the original article Hit count: 219

Filed under:
|
|
|

Hi everyone, I'm using jquery $.getJSON to retrieve list of cities.

Everything works fine, but I'm from Estonia (probably most of you don't know much about this country =D) and we are using some characters like õ, ü. ä, ö.

When I pass letters like this to callback function, I keep getting empty strings. I've tried to base64 encode(server-side)-decode(jquery base64 plugin) strings (i thought it was a good idea as long as I can compress pages with php, so I don't have to worry about bandwidth), but in this way I end up with some random chinese symbols.

What would be the best workaround for this problem.

Thank you.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about getjson