Enforce UTF-8 encoding when submitting form values

Solution Verified - Updated -

Issue

  • We allow users to submit data through a jsp file to the server. However, some content received from the client browser gets garbled
  • We are having an issue with form posts involving umlauts in JBoss Portal.  Basically, whenever I post ÄëÔÝß the server receives ÄëÔÃ?ß. We already tried to explicitly set the file encoding by adding the parameter -Dfile.encoding=UTF-8 to jboss' run.[bat|sh] java_opts.

Environment

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