Commits

Anonymous committed 4b2b7a5

encoding should be set

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@376573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits 875da8a

Comments (0)

Files changed (1)

File src/java/com/opensymphony/webwork/dispatcher/multipart/PellMultiPartRequest.java

  */
 package com.opensymphony.webwork.dispatcher.multipart;
 
+import com.opensymphony.webwork.config.Configuration;
 import http.utils.multipartrequest.ServletMultipartRequest;
 
-import org.apache.commons.logging.LogFactory;
-
+import javax.servlet.http.HttpServletRequest;
 import java.io.File;
 import java.io.IOException;
 import java.io.UnsupportedEncodingException;
-
 import java.util.ArrayList;
 import java.util.Enumeration;
 import java.util.List;
 
-import javax.servlet.http.HttpServletRequest;
-
 
 /**
  * Multipart form data request adapter for Jason Pell's multipart utils package.
     /**
      * Creates a new request wrapper to handle multi-part data using methods adapted from Jason Pell's
      * multipart classes (see class description).
-     * 
-     * @param maxSize maximum size post allowed
-     * @param saveDir the directory to save off the file
+     *
+     * @param maxSize        maximum size post allowed
+     * @param saveDir        the directory to save off the file
      * @param servletRequest the request containing the multipart
      */
     public PellMultiPartRequest(HttpServletRequest servletRequest, String saveDir, int maxSize) throws IOException {
     /**
      * Sets the encoding for the uploaded params.  This needs to be set if you are using character sets other than
      * ASCII.
-     * <p>
+     * <p/>
      * The encoding is looked up from the configuration setting 'webwork.i18n.encoding'.  This is usually set in
      * default.properties & webwork.properties.
      */
         String encoding = null;
 
         try {
-            //encoding = Configuration.getString("webwork.i18n.encoding");
+            encoding = Configuration.getString("webwork.i18n.encoding");
             if (encoding != null) {
                 //NB: This should never be called at the same time as the constructor for
                 //ServletMultiPartRequest, as it can cause problems.