Re: How to set character encoding for form data in servlet 2.2 compatible web server
Posted By:
Java_Slave
Posted On:
Tuesday, July 16, 2002 09:18 PM
I read from a articals :
"The setCharacterEncoding() call may throw java.io.UnsupportedEncodingException if the encoding is not supported. This functionality is also available for users of API 2.2 and earlier, as part of the com.oreilly.servlet.ParameterParser class."
URL : http://www.servlets.com/cos/index.html
I don't know it does work or not. But I hope it's useful for you. :)
Re: How to set character encoding for form data in servlet 2.2 compatible web server
Posted By:
Steve_Leung
Posted On:
Monday, July 8, 2002 07:24 AM
It seems use
String japanEncoding = new String( req.getParameter("Input", "ISO-8859-1"), "Shift-jis" );
I am not sure the correct name for "Shift-jis" is correct or not. Test it yourself.