Forum Moderators: open

Message Too Old, No Replies

I have a problem with JS HTML encoding

I have a problem with JS HTML encoding

         

eugene2006

4:21 pm on Oct 16, 2006 (gmt 0)

10+ Year Member



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?

kaled

6:30 pm on Oct 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just a guess...

Have you tried using the unescape() function?

Bear in mind, on an html page, you can specify a character set, but I don't think there is any such thing for Windows dialogs but you might be ok on a Mac.

Kaled.