Special charactes are displayed on the cluster environment.

Discussions

Web tier: servlets, JSP, Web frameworks: Special charactes are displayed on the cluster environment.

  1. 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. Sri
  2. 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
  3. 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.
  4. 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.