Encoding non-English characters

Posted by Martin on Stack Overflow See other posts from Stack Overflow or by Martin
Published on 2010-06-05T06:49:51Z Indexed on 2010/06/05 9:42 UTC
Read the original article Hit count: 309

Filed under:

Hey there!

I'm having a bit of trouble here and I was hoping someone throws me a hint :)

I'm getting some GET VARS with JS but I have trouble with non-latin charsets: cyrillic for example. The cyrillic var appears correct in the url but when I retrieve it with JS I get some dummy string.

I was wondering of a function similar to "unescape" for such a case.

Alternatively, if someone knows a way I could convert a cyrillic string to the same dummy string I get from the URL, it will still do me the trick, since all I need is compare.

:) Thanks! Martin

© Stack Overflow or respective owner

Related posts about JavaScript