문제

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?

도움이 되었습니까?

해결책

You can also set it from the JVM options

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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top