EAP 6 reads multipart/form-data with incorrect encoding

Solution Verified - Updated -

Issue

  • We post some UTF-8 multipart/form-data to JBoss. Parameters are not read by JBoss with the correct encoding. For instance, the below results in garbled text read from the request parameter:
request.setCharacterEncoding("UTF-8");
request.getParts()
String text = request.getParameter("sometextfield");

Environment

  • JBoss Enterprise Application Platform (EAP) 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content