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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
