How to globally set the uri-encoding to UTF-8 in JBoss EAP ?

Solution Verified - Updated -

Issue

  • Is there a way to globally set the URI encoding to UTF-8 so that special characters like Chinese or Japanese characters are printed properly.
  • Is there any other way to set the URI_ENCODING property other than JBoss system property?
  • How to enforce UTF-8 character encoding in a servlet?
  • We are migrating one application from JBoss EAP 6.3 to 7.1.4 and after forcing the encode configuration using locale on the operating-system layer that is es_PE.utf8 that changes did not correct the issue.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.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