Hi experts,
I am unable to display 'chinese' characters through Javascript. For example the following statement is giving unicode characters, rather than chinese.
alert("<%= bundle.getString("welcome")%>");
The following statement giving Chinsese output as expected.
<%= bundle.getString("welcome") %>
Inorder to output 'Chinese' through JavaScript, what have to i do ??
Please let me know if there is any document on this...
thanks
Srinivas
Discussions
Web tier: servlets, JSP, Web frameworks: Unable to print 'Chinese' through JavaScript.....please help
-
Unable to print 'Chinese' through JavaScript.....please help (4 messages)
- Posted by: srinivas n
- Posted on: October 13 2001 02:37 EDT
Threaded Messages (4)
- Unable to print 'Chinese' through JavaScript.....please help by Victor Jan on October 13 2001 03:25 EDT
- Unable to print 'Chinese' through JavaScript.....please help by Tony Brookes on October 14 2001 04:16 EDT
- Unable to print 'Chinese' through JavaScript.....please help by srinivas n on October 15 2001 03:46 EDT
- chinese charecter in alert messages by Kunal Kumar on January 02 2007 00:01 EST
-
Unable to print 'Chinese' through JavaScript.....please help[ Go to top ]
- Posted by: Victor Jan
- Posted on: October 13 2001 03:25 EDT
- in response to srinivas n
In my opinion,you should convert chinese characters to GBK,then print it. -
Unable to print 'Chinese' through JavaScript.....please help[ Go to top ]
- Posted by: Tony Brookes
- Posted on: October 14 2001 04:16 EDT
- in response to srinivas n
That's because your browser doesn't have the chinese language set installed, OR because the web server is returning the language as en/US which is now what you want. Set the return language in the JSP and you should be OK once you install the right character set in the browser.
Chz
Tony -
Unable to print 'Chinese' through JavaScript.....please help[ Go to top ]
- Posted by: srinivas n
- Posted on: October 15 2001 03:46 EDT
- in response to Tony Brookes
Hi,
you are not right.
I am able to print chinese from JSP, but faild to display chinese from javascript from the same JSP.
regards
Srinivas -
chinese charecter in alert messages[ Go to top ]
- Posted by: Kunal Kumar
- Posted on: January 02 2007 00:01 EST
- in response to srinivas n
Hello Srinivas I am facing a similar probems where chinese charecters appear very well in the JSP page but the decimal equivalent (&#nnnn) appear in javascript alert. Please share your learning if you could resolve the problem. Regards