-
Displaying Chinese Characters using Javascript (1 messages)
- Posted by: Kajal Sanghi
- Posted on: February 23 2010 03:15 EST
Hi, I need to translate my site into Chinese. (No frameworks are being used currently) Rest all has been done, but when coming to the alerts in Javascript, i'm stuck. e.g: neither , unicode nor the Hexa representation seems to work alert("未经授权的访问"); nor alert("\u672A\u7ECF\u6388\u6743\u7684\u8BBF\u95EE"); Can somebody guide me as to how to get the Chinese Characters displayed in the Alert Messages Thanks a lot.Threaded Messages (1)
- Re: Displaying Chinese Characters using Javascript by David Thielen on February 28 2010 02:02 EST
-
Re: Displaying Chinese Characters using Javascript[ Go to top ]
- Posted by: David Thielen
- Posted on: February 28 2010 02:02 EST
- in response to Kajal Sanghi
Both ways you list should work. This may help - post I wrote on character encoding Good luck.