Page 1 of 1

I have a problem with JS HTML encoding

Posted: Mon Oct 16, 2006 11:21 am
by eugene2008
I have a problem with JS HTML encoding
When I use non latin characters in window.alert() I get nonsense
If I use it in document html like ᄋ 弫 ᄋ ᄋ and so on then it is shown ok but when I put the same code encoding into the alert() box I get these ᄋ 弫 ᄋ ᄋ but not non latin text
How to fix it? What are the possibilities?

Posted: Mon Oct 16, 2006 11:24 am
by feyd
How are you writing them? The alert box is rendered by the operating system more than the browser. If you're using unicode characters, converting them to ones Javascript understands may help. Javascript has \uNNNN type syntax for unicode characters.