hi all. i'm trying to internationalize a java webapp that's targetted at j2ee 1.2 containers. since that implies jsdk-2.2, i'm stuck without the request.setCharacterEncoding method that was added in jsdk-2.3. assuming that the browser didn't send a character encoding and i need to forcibly set the character encoding to UTF-8, can i reliably do this on a per-parameter basis:
value = new String(request.getParameter("foo").getBytes(), "UTF-8"); and trust that the servlet container will have used the platform's default character encoding to turn the original byte stream into a String in the first place, or need i do something like this: InputStreamReader isr = new InputStreamReader(request.getInputStream(), "UTF-8"); and parse the request parameters myself? - donald ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html