jholmes 2002/10/16 17:49:25 Modified: src/share/org/apache/struts/upload CommonsMultipartRequestHandler.java Log: make addTextParameter() aware of character encoding in request PR: Bugzilla #12732 Revision Changes Path 1.3 +11 -5 jakarta-struts/src/share/org/apache/struts/upload/CommonsMultipartRequestHandler.java Index: CommonsMultipartRequestHandler.java =================================================================== RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/upload/CommonsMultipartRequestHandler.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- CommonsMultipartRequestHandler.java 31 Jul 2002 06:43:18 -0000 1.2 +++ CommonsMultipartRequestHandler.java 17 Oct 2002 00:49:25 -0000 1.3 @@ -427,7 +427,13 @@ */ protected void addTextParameter(HttpServletRequest request, FileItem item) { String name = item.getFieldName(); - String value = item.getString(); + String value = null; + + try { + value = item.getString(request.getCharacterEncoding()); + } catch (Exception e) { + value = item.getString(); + } if (request instanceof MultipartRequestWrapper) { MultipartRequestWrapper wrapper = (MultipartRequestWrapper) request;
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>