Discussions
Web tier: servlets, JSP, Web frameworks: Special charactes are displayed on the cluster environment.
-
Special charactes are displayed on the cluster environment. (3 messages)
- Posted by: sridhar mamidi
- Posted on: September 27 2006 08:30 EDT
Hi, I have a web application which accepts multibyte characters. In my product, the jsp page is working fine on single node like tomcat5.5 or weblogic81 SP5 but it is displaying some strange characters on the cluster environment. like I entered in the first jsp following text(hindi) रओलइ, the characters displayed as रओलठBut the same thing is working fine on non cluster environment. Here I am passing this request value to another jsp from there to DB. I checked in the second page, the request parameter values, there itself I am getting रओलà¤, but on non cluster environment, the value shown on the 2nd jsp is : ?????? I think this not a problem with database. if any one has idea about it, please help me in this regard. Thanks in advance. SriThreaded Messages (3)
- Re: Special charactes are displayed on the cluster environment. by Bhagvan K on September 27 2006 21:25 EDT
- Re: Special charactes are displayed on the cluster environment. by sridhar mamidi on September 28 2006 02:54 EDT
- Re: Special charactes are displayed on the cluster environment. by Vijay Yadlapati on November 01 2006 02:03 EST
- Re: Special charactes are displayed on the cluster environment. by sridhar mamidi on September 28 2006 02:54 EDT
-
Re: Special charactes are displayed on the cluster environment.[ Go to top ]
- Posted by: Bhagvan K
- Posted on: September 27 2006 21:25 EDT
- in response to sridhar mamidi
ideally if you have a controller (either jsp or servlet) ensure that the user session is set to user locale . or in every jsp you need to set the content type (char set) and the locale information..... Attached below is the link : http://www.java2s.com/Code/Java/Servlets/I18N.htm res.setHeader("Content-Language", "ja"); out.println("In Japanese:"); out.println("\u4eca\u65e5\u306f\u4e16\u754c"); Bhagvan K http://www.jroller.com/page/bhagvank -
Re: Special charactes are displayed on the cluster environment.[ Go to top ]
- Posted by: sridhar mamidi
- Posted on: September 28 2006 02:54 EDT
- in response to Bhagvan K
thanks, but in the jsp already I set the content type and charset. It is working fine on single node, but on the cluster environment it is displaying spl. characters. -
Re: Special charactes are displayed on the cluster environment.[ Go to top ]
- Posted by: Vijay Yadlapati
- Posted on: November 01 2006 14:03 EST
- in response to sridhar mamidi
Sridhar, Have the Machine name, IP address of the other box in the "hosts" file of each of the machines. This resolved similar problem for japanese characters.