I have a problem with JS HTML encoding

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
eugene2008
Forum Newbie
Posts: 21
Joined: Sat Jul 01, 2006 3:07 pm

I have a problem with JS HTML encoding

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply