Is there a way to tell JBoss to globally use UTF-8 encoding to HttpServlet requests?

Solution Verified - Updated -

Issue

  • Currently, if the encoding is not set on an HttpServletRequest, it defaults to iso-8859-1. Is there a way to set the default to utf-8 without having to call request.setCharacterEncoding("UTF-8")?

  • Is there any other way to set the URI_ENCODING property other than JBoss system property?

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 4.3.x
    • 5.x
    • 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