Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to solve the linux Chinese character garbled code?

Shulou Source: shulou.com Published: 2022-06-03 06:22:46 09月21日 Update

What this article shares with you is the solution to linux Chinese character garbled. I believe most people don't know how to solve it yet, so I sum up the following contents. Without saying much, let's read on.

1. Install the Chinese language pack

# yum-y groupinstall chinese-support

2. Set the corresponding character set

# # temporary effective # export LANG= "zh_CN.UTF-8" # set to Chinese # export LANG= "en_US.UTF-8" # set to English, I prefer this way export # # is permanent, edit / etc/sysconfig/i18nLANG= "zh_CN.UTF-8"

3. Restart

Reboot

The above is the introduction of linux Chinese character garbled solutions, the steps are simple and easy to operate, and the content of the article is compact step by step. I hope you can get something according to this article.

Tags: Garbled Chinese characters content methods articles Chinese compact most characters character sets that is so articles steps see language easy to go permanent English Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Apple Huawei Shulou Technology MariaDB