Why FormParam doesn't accept characters with accent in a JAX-RS resource in EAP 6?
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.