Question

I need to set the jvm system property file.encoding to utf-8, in my JBoss7 environment.

Where do I have to make this change? standalone.xml?

Was it helpful?

Solution

You can also set it from the JVM options

-Dfile.encoding=UTF-8 -Dfile.io.encoding=UTF-8 -DjavaEncoding=UTF-8 

OTHER TIPS

There is a section in all the instance config files, standalone.xml as well, named system-properties.

You can define your properties like this:

<system-properties>
    <property name="file.encoding" value="utf-8"/>
</system-properties>

Should the section be missing, just add it immediately after the <extensions> section.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top