users@glassfish.java.net

glassfish 3.1.2 multipart encoding problem.

From: <forums_at_java.net>
Date: Wed, 14 Mar 2012 06:18:11 -0500 (CDT)

 After glassfish update from 3.0.1 to 3.1.2 I face to problem with incorect
encoding in request parameters.   Please see
http://java.net/jira/browse/GLASSFISH-16740   As I see this Multipart add
parameters with encoding iso-8859-1 no matter what  <parameter-encoding
default-charset="UTF-8"/> declared in glassfish-web.xml   This problem only
in multipart/form so I think it needs to change Multipart.java from  
 parameters.addParameter(partItem.getName(),                    
                        partItem.getString());   because
getString take encoding through multipart content type, but in this case it
must take encoding from Parameters.encoding or coyoteRequest.charEncoding

--
[Message sent by forum member 'arytov']
View Post: http://forums.java.net/node/884266