2

Is it possible to set character encoding for a JBoss AS 5.1 through a jboss-web.xml cfg file, like this?

    <sun-web-app>
    locale-charset-info default-locale="">
    <locale-charset-map locale="" charset=""/>
    <parameter-encoding default-charset="UTF-8"/>
    </locale-charset-info>
    </sun-web-app>

Thank you for your answers!

peter.szrnka
  • 43
  • 1
  • 10

1 Answers1

0

I see, your config sample is for GlassFish.

If you're still on JBoss AS 5.1, change:

<jboss_install>/server/(default)/deploy/jboss-web.deployer/server.xml

to set the connector URIEncoding:

<Connector port="8080" URIEncoding="UTF-8" />

If you're using a later version of JBoss AS or a different application server entirely, see my complete answer here.

Community
  • 1
  • 1
gknicker
  • 5,509
  • 2
  • 25
  • 41