Unable to change charset from ISO-8859-1 to UTF-8 in glassfish 3.1

前端 未结 4 1350
北恋
北恋 2020-12-01 13:12

I am having problems to change the charset in my web application response from ISO-8859-1 (default) to UTF-8. I already added the VM option -Dfile.encoding=UTF-8

4条回答
  •  无人及你
    2020-12-01 14:07

    For UTF-8 fonts on Glassfish3 (Log files, etc):

    Go to Server-config > JVM Settings > JVM Options > Add option (-Dfile.encoding=UTF8).

    If you are not on -server mode then go to default-config > JVM Settings > JVM Options

提交回复
热议问题