| | |
Multibyte Character encoding issue using GB18030 For Chinese Character
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2008
Posts: 1
Reputation:
Solved Threads: 0
Hi All,
Im having one problem in the multibyte character support im using GB18030 encoding in my application.
Im using Weblogic sever.
the configuration that i did so far is
1. Web.xml - Configured the GB18030 encoding
2. weblogic.xml - Configured the GB18030 encoding
3. ActionServlet.java - added GB18030 encoding in request.setEncoding..
4. Header.jsp - Configured the GB18030 encoding as meta tag
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
here is the problem im facing..
In the jsp i have entered few chinese character its length is more that 35.
in the actio class im validating if it exceed 35 means i will show the validatin error in that Same jsp.
here is the problem occures the input that i have given is changed after the validation few character had been changed to "?"..
Example:
input that i have given in the JSP - Attached File - 1.JPG
"欢迎来到东莫村 冰冻星球 铁男本色"
after the validation error it is changed as the below content - Attached file - 2.JPG
欢迎来到东莫?? 冰冻??球 铁男本色[/B]
i have attached the screen shot also in this forum..
can u please any one give any solution ...
Thanks in Advance
Satheesh Venkatachalam
Im having one problem in the multibyte character support im using GB18030 encoding in my application.
Im using Weblogic sever.
the configuration that i did so far is
1. Web.xml - Configured the GB18030 encoding
2. weblogic.xml - Configured the GB18030 encoding
3. ActionServlet.java - added GB18030 encoding in request.setEncoding..
4. Header.jsp - Configured the GB18030 encoding as meta tag
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
here is the problem im facing..
In the jsp i have entered few chinese character its length is more that 35.
in the actio class im validating if it exceed 35 means i will show the validatin error in that Same jsp.
here is the problem occures the input that i have given is changed after the validation few character had been changed to "?"..
Example:
input that i have given in the JSP - Attached File - 1.JPG
"欢迎来到东莫村 冰冻星球 铁男本色"
after the validation error it is changed as the below content - Attached file - 2.JPG
欢迎来到东莫?? 冰冻??球 铁男本色[/B]
i have attached the screen shot also in this forum..
can u please any one give any solution ...
Thanks in Advance
Satheesh Venkatachalam
![]() |
Other Threads in the JSP Forum
- Previous Thread: displaying pdf in jsp
- Next Thread: Store HTML table Values into Database
| Thread Tools | Search this Thread |
apache backbutton combobox connection database development directorystructure dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 network parameters passing ping printinserverinsteadofclient redirect request.getparameter response servlet servletdopost()readxml sessions software ssl state_saving_method stocks sun tomcat tutorial update video web





