Home > Article > Operation and Maintenance > What should I do if the Chinese characters are garbled under Linux?
Solution to the garbled Chinese character was under Linux: 1. Log in to the WAS management console; 2. Select "java virtual machine"; 3. Set the general JVM parameters to "zh -Duser.region=CN -Xverify: none”; 4. Restart the Server.
The operating environment of this article: SuSE Linux 11 system, WAS7.0, Dell G3 computer.
What should I do if the was Chinese characters are garbled under Linux?
The was log garbled solution under Linux:
Environment: SuSE Linux 11. WAS7.0
Problem: Use SecureCRT to remotely connect to the production environment, and use the tail command to view the logs generated by the application deployed on WAS. The Chinese display is garbled
Solution As follows:
Log in to the WAS management console, click:
服务器-》服务器类型-》WebSphere Application Server -》server 1(应用服务器名称,需要修改哪个就点击哪个)-》java和进程管理 -》进程定义-》java虚拟机
Set the general JVM parameters to:
-Ddefault.client.encoding=GBK -Dfile.encoding=GBK -Duser.language=zh -Duser.region=CN -Xverify:none
Restart the server after modification, and check that the log garbled characters have disappeared, Chinese it shows good.
Recommended study: "linux video tutorial"
The above is the detailed content of What should I do if the Chinese characters are garbled under Linux?. For more information, please follow other related articles on the PHP Chinese website!