Domanda

Same as the title, Kindly advice how to configure JBoss to display chinese character.

The unreadable character is making trouble for me when i saw the unreadable words and have no idea what is going on with the error occurred. Kindly advice.

enter image description here

È stato utile?

Soluzione

Try the following:

Edit JBOSS_HOME//server/(default)/deploy/jboss-web.deployer/server.xml and edit the following line (I guess UTF-8 should be Ok, but I think you'll have to try with other values as well):

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

Edit eithr JBOSS_HOME/bin/run.bat or JBOSS_HOME/bin/run.sh depending on the OS you're using. Set the -Dfile.encoding option accordingly (again, try first UTF-8):

JAVA_OPTS=JAVA_OPTS -Dfile.encoding=utf-8
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top