Why FormParam doesn't accept characters with accent in a JAX-RS resource in EAP 6?

Solution Verified - Updated -

Issue

We have a simple resource that receives a form parameter as String, for example:

@Path("/myresource")
public interface MyResource {   

    @POST   
    public Response paramTest(@FormParam("param") String param );
}

When submiting a parameter with accentuation, it sanitizes the parameter, for example "não" becomes "n", or the parameter has invalid characters. How can we prevent this?

Environment

  • Red Hat 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