> I have a servlet application which uses jsp pages.  The jsp pages
> use unicode encoding
>
> <%@ page contentType="text/html; charset=UTF-8" %>
>
> When the user fills out a form in a page and submits it to the servlet
> what format is the data submitted back to the servlet in, is it in unicode
> ISO-8859-1 format or is it dependant on the users browser/OS configuration.

Data in form will be encoded by UTF-8.
But servlet engine will be not know what encoding to use for request handling
and by default use default encoding. But you can explicitly specify encoding:

public void doPost(HttpServletRequest request,HttpServletResponse response)
  throws ServletException, IOException
{
    request.setCharacterEncoding("UTF-8");
    ...
}

___________________________________________________________________________
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

Reply via email to