Hi
I am entering following URL on the web browser:
http://localhost:8080/nbt4/pages/chinesesearch.jsp?crit=可回收包装
I have pasted following code of chinesesearch.jsp:
The following is printed on the browser:
List of products: 可回收包装
After conversion ???
The reason I am using the method getBytes(), is because on the tomcat console following message is printed:
Criteria in JSP((((())))) before unicode conversion - ???
Criteria in JSP((((())))) after unicode conversion - ???
Both request from web browser to server and the same value from server to web browser are printed properly in chinese. However, in the tomcat console, the characters are not displayed properly, instead of chinese characters, ??? are displayed. Please tell me how to resolve this ?
Also, when the query string parameter is passed to a Java bean as a string variable, and printed on console - the values come as garbage.
Has anybody had experience working with Chinese characters ? Please help.
I am using Tomcat 6, JDK 6 and Windows 7. Also, I have to run this solution in production environment running CentOS, JDK6 and Tomcat 6.
Thanks
Tejas