How to solve the problem of garbled Chinese characters in was under linux
This article is about how to solve the problem of garbled Chinese characters in was under linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Solutions to was Chinese characters garbled under linux: 1, log in to the WAS management console; 2, select "java virtual machine"; 3, set the general JVM parameter to "zh-Duser.region=CN-Xverify:none"; 4, restart Server.
Operating environment: SuSE Linux 11 system, WAS7.0, Dell G3 computer.
Solution to garbled was logs under linux:
Environment: SuSE Linux 11, WAS7.0
Problem: when you use SecureCRT to remotely connect to the production environment and use the tail command to view the logs generated by applications deployed on WAS, the Chinese characters show garbled.
The solution is as follows:
Log in to the WAS Management console and click:
Server-"server type -" WebSphere Application Server-"server 1 (application server name, click whichever needs to be modified) -" java and process management-"process definition -" java virtual machine
Set the general JVM parameter to:
-Ddefault.client.encoding=GBK-Dfile.encoding=GBK-Duser.language=zh-Duser.region=CN-Xverify:none
Restart Server after modification, and then see that the garbled code in the log has disappeared and the Chinese display is normal.
Thank you for reading! This is the end of the article on "how to solve the problem of garbled Chinese characters in was under linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!