In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to solve the problem of Chinese garbled code in suse linux. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
The program appears garbled when running on the X window terminal as well as on the console.
Solution:
1. Make sure that the internal code of the system is Chinese code, such as GBK,GB2312, etc. It can be viewed through the locale command, and if not, it can be modified. Start the Yast2 control center, open "system"-- > "/ etc/sysconfig Editor", expand the "System-> Environment-> Language" item, and change the value of all the items you start with RC to zh_CN.GB2312. (you can also modify the / etc/sysconfig/language file directly).
two。 Install zhcon Chinese plug-in.
Zhcon is an efficient double-byte China / Japan / Korea (CJK) virtual terminal working under the Linux console. Like UCDOS in the DOS environment, it provides a complete double-byte language environment for the console (console) environment. Please note before downloading and using: zhcon is not suitable for X Window terminals. Cxterm or rxvt can be selected as Chinese terminals in X Window. Zhcon is a plug-in platform, and unlike kernel Sinicization, there is no need to patch linux's kernel. Like ordinary linux software, you can easily install zhcon directly. After executing zhcon on the main console, you can enter the Chinese platform, or you can exit and return to the western language state at any time. Zhcon is free software that follows the principles of GPL, because there is no reason for anyone to pay for the use of their native language.
Official website: http://zhcon.sourceforge.net/index_cn.html, has both source and binary rpm packages.
After installing zhcon, first run it, zhcon, it will appear some prompt messages, it simulates a shell. Then run your own program, and the Chinese display will be normal.
3.X terminals under window
There is a Terminal option on the menu item. Choose GB2312 or GBK as the Encoding method to OK.
Method 1:
To solve the problem of Chinese garbled code in Suse graphics terminal, I use Suse linux enterpise server 10 to open a terminal to run the program written by myself when using xwindows. The program interface has Chinese, which can be displayed as garbled code, but can be displayed in Chinese on the serial port terminal.
Solution:
"computer"-- > "YaST2 Control Center"-- > "system"-- > "/ etc/sysconfig Editor"-- > "system"-- > "Environment"-> Language ", set" RC_LANG "to" zh_CN.GB2312 ". Restart the system.
This method sets the terminal in xwindows mode to solve the garbled problem, but not in character interface mode, and is working on it.
Method 2:
First of all, make sure that your system code is Chinese, such as GB2312,GBK. If you are not clear, please enter locale under the terminal to check, not just modify it. Here, I provide the modification method under Suse: start the Yast2 Control Center, open "system"-> "/ etc/sysconfig Editor", expand the "System Environment Language" item, change the value of all the items you start with RC to GB2312 and restart the system to take effect.
On how to solve the suse linux Chinese garbled problem to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.