In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to solve the problem of terminal setup display garbled code under Linux system". In daily operation, I believe many people have doubts about how to solve the problem of terminal setup display garbled code under Linux system. Xiaobian consulted all kinds of data and sorted out simple and easy-to-use operation methods. I hope it will be helpful for everyone to answer the doubt of "how to solve the problem of terminal setup display garbled code under Linux system". Next, please follow the editor to study!
Method 1: configure the SSH tool
SecureCRT Chinese version configuration
[global options] → [default session] → [Edit default Settings] → [Terminal] → [appearance] → [Font] → [New Arial 10pt CHINESE_GB2312] → [character Encoding UTF-8]
Putty configuration
[window] → [Appearance] → [Font settings] → [Change] → [Fixedsys CHINESE_GB2312]
[window] → [Appearance] → [Translation] → [Received data assumed to be in which character set] → [Use font encoding UTF-8]
If you use it frequently, save these settings in session.
Open putty, and after logging in successfully, enter: export LC_ALL='zh_CN.utf8' in shell
Method 2: configure the system
The operating system language is Chinese, which displays Chinese characters
Edit / etc/sysconfig/i18n and modify it to read as follows:
LANG= "zh_CN.GB2312"
SUPPORTED= "zh_CN.UTF-8:zh_CN:zh"
SYSFONT= "latarcyrheb-sun16"
Or
LANG=zh_CN.GB18030
LANGUAGE=zh_CN.GB18030:zh_CN.GB2312:zh_CN
Export LANG LANGUAGE
In this way, Chinese can be entered and displayed on the terminal, and the problem of garbled Chinese display in the shell script is also solved.
The operating system language is English and displays Chinese characters.
Edit / etc/sysconfig/i18n and modify it to read as follows:
LANG= "en_US"
SUPPORTED= "en_US.UTF-8:en_US:en"
SYSFONT= "latarcyrheb-sun16"
At this point, the study on "how to solve the problem of terminal setup display garbled under the Linux system" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.