Skip to content

Apache Commons Upload and UTF-8

In the past we had a little problem with the Apache Commons Fileupload lib and UTF-8 parameter. A simple property will fix the problem:

ServletFileUpload upload = new ServletFileUpload(DFIFactoryToUpload);
upload.setHeaderEncoding("UTF-8");
Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.