This content has been marked as final.
Show 3 replies
-
1. Re: Question about multi-language support
jjm Jan 26, 2005 10:03 AM (in response to wxwang)I'm having a simular problem. What character set is being used to post, Shift_JIS or UTF8? I believe this is controlled by either the meta tag you have in your example, or
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
I've found it is nice to dump out the values in the String being used to see what is going on. Try something like:public static void dumpString(String str) { System.out.println("!!! str = '" + str + "' length = '" + str.length() + "'"); for(int i=0; i < str.length(); i++) { char ch = str.charAt(i); System.out.println("!!! str[" + i + "] = '" + ch + "' 0x" + Integer.toHexString(ch)); } }
Try setting the URIEncoding attribute in the tomcat server.xml (/jboss/server/default/deploy/jbossweb-tomcat50.sar/ on JBoss 4.0.0).
Hope this helps,
Josh -
2. Re: Question about multi-language support
wxwang Jan 31, 2005 8:36 PM (in response to wxwang)Thank you very much
I did it.
The problem is caused by my custom form authenticator, which deals with request paramter at the first time and affect the others. -
3. Re: Question about multi-language support
fragavi Jun 8, 2005 5:26 AM (in response to wxwang)Hi,
I'm also encountering the same problem, but I'm using a different version of jboss. How do you set the encoding to UTF-8 in jboss3.0.6(WIN2000)?