The bug occurs when form data is posted as multipart/form-data and using Servlet 3 API to get posted files. In a servlet, if we set the encoding: request.setCharacterEncoding("UTF-8"); Then invoke: request.getParts() And then invoke: String text = request.getParameter("sometextfield"); UTF-8 characters in the text have been garbled. Order of method calls are significant, if a getParameter is called before getParts, the correct encoding will be used. However, the order which you invoke the methods should not matter.
Can you post a simple test-case as a WAR (including source) to reproduce this?
Created attachment 30311 [details] Multipart demo war
Created attachment 30312 [details] Multipart demo source
Thanks for the report. Fixed in trunk and 7.0.x and will be included in 7.0.41 onwards.