Home>Article>Operation and Maintenance> What should I do if the Chinese characters are garbled under Linux?

What should I do if the Chinese characters are garbled under Linux?

藏色散人
藏色散人 Original
2021-11-22 11:28:12 3414browse

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.

What should I do if the Chinese characters are garbled under Linux?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Is ios a linux system? Next article:Is ios a linux system?