Method One: Configure SSH tools securecrt Chinese version configuration [Global options]→[Default session]→[Edit default settings]→[terminal]→[appearance]→[font]→[new song body 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 used frequently, keep these settings in session. Open Putty, login successful, enter in Shell: export lc_all= ' Zh_cn.utf8 ' method Two: Configuration system Console terminal garbled Add the following on the last line of the/etc/profile file: export lc_all= "ZH_CN. GB18030 " Xwindow terminal garbled on the last line of/etc/sysconfig/i18n file add the following: export lc_all= "zh_cn.gb18030" vi /etc/sysconfig/i18n to change content to &N bsp; lang= "zh_cn.gb18030"   Language= "Zh_CN.GB18030:zh_CN.GB2312:zh_CN" supported= "ZH_CN. GB18030:zh_CN:zh:en_US. Utf-8:en_us:en " sysfont=" "Lat0-sun16" after the restart of the machine, so that Chinese at the Ssh,telnet terminal can be normal display. operating system language is English, display Chinese characters edit/etc/sysconfig/i18n, modified to the following: lang= "en_US" supported= en_US. Utf-8:en_us:en " sysfont=" Latarcyrheb-sun16 "
================================ Method Two ===========================
1. The Linux console terminal displays Chinese #如何查看Linux系统支持哪些语言和字符集?
#locale-A
Modify the/etc/sysconfig/i18n file as follows:
#LANG = "en_US." UTF-8 "
Lang= "ZH_CN. GB2312 "
Supported= "ZH_CN. Utf-8:zh_cn:zh:en_us. Utf-8:en_us:en "
Sysfont= "Latarcyrheb-sun16"
2. VI Display Chinese problem
Edit the file. Viminfo, modify the following *ENCODING==UTF-8,GBK, login to enter display Chinese
3, set LANG=ZH_CN. GB2312 Login to enter display Chinese
============================= Method Three ===========================
#vi ~/.bash_profile
Lang=zh_cn. GB18030
Language=zh_cn.gb18030:zh_cn.gb2312:zh_cn
Export LANG LANGUAGE
This will be able to input and display in the terminal Chinese, and the original shell script in Chinese display garbled problem also resolved. /
====================== Programme Overview ========================
A list of Chinese garbled methods for solving Linux console
---
Install Red Hat Linux, operating under the Linux console, sometimes displaying garbled characters, such as running LS in an empty directory.
It is expected that the formation of garbled Chinese, in fact, as long as the display of English is good, do not show what Chinese ah.
In order to solve this problem, search the Internet, find some way, all record!
I am currently using the first method: Unset all, Lc_type,lang. A temporary solution is OK.
+++
Solving Chinese garbled method under Linux console
---
Article Source: http://viking.blog.51cto.com/272298/82423
---
After configuring the Chinese environment, the console does not display Chinese properly. Baffled, so Google a bit, in the "Xuan Gate" blog to find a temporary solution:
In the console, execute the following commands sequentially:
Unset all
Unset Lc_type
Unset LANG
However, this method can only be temporarily resolved, after the landing still can not be normal display.
Another way to find it (use caution):
Delete all the contents of the i18n file under the directory/etc/sysconfig, and then restart it.
Note: After this method is set up, it should not support Chinese. I use SSH to log in, so I'm in English. Hey ~ ~ ~ ~
+++
The solution of Chinese display garbled in the Linux console/linux Chinese console
---
Http://85y.org/blog/20070812277.html
---
Under the Ubuntu
We need to install Zhcon first.
$ sudo apt-get install Zhcon
After installation, under the console, enter:
$ Zhcon--utf8
can display Chinese, and there are Chinese input text, press CTRL + SPACEBAR can be transferred out, but only with intelligent pinyin input method, temporarily no Wubi input method
There is a situation where the input
$ Zhcon--utf8
After that, the display is black, there is no response, this is because your display resolution is not set up, Zhcon only support the 800x600,1024x768 resolution to use, which has to add a parameter in/boot/grub/menu.lst
$ sudo vim/boot/grub/menu.lst
Find a sentence like this inside
Title Ubuntu 6.10, Kernel 2.6.17-10-generic
Root (hd0,2)
Kernel/boot/vmlinuz-2.6.17-10-generic Root=/dev/hda3 vga=788
Initrd/boot/initrd.img-2.6.17-10-generic
Quiet
Savedefault
Boot
In kernel this line, in the back to join VGA=XXX,XXX I used is 788, the comparison table below, 788 is 800x600 resolution, 645536 color display, generally use this on the line.
vga=771 (800x600x256)
vga=788 (800x600x645536)
vga=773 (1024x768x256)
vga=791 (1024x768x65536)
And then save the exit
Reboot reboot the machine and you can see that the resolution is much higher than before.
+++
The Linux or Unix Java console outputs a garbled solution
---
http://dandansdu.javaeye.com/blog/271568
---
Keyword: Linux or unix Java console output is garbled solution
It's been bothering me for two days.
I finally know what the reason is.
This is because of the way the JVM was encoded.
You can see how the current file is encoded by System.getproperty ("file.encoding"), and then compare the format of the data passed over to see if the conversion is correct or the coding is inconsistent. And then you can change your program.
You can also use System.getproperties (). List (System.out); Print out all of the system parameter settings, perhaps more at a glance
I met the problem is a C/s structure, the client in Windows, server-side Linux, client code is GBK, but through the above method I found that the server-side coding is ansi_x3.4-1968.
The easiest way to do this is to get the server-side code into GBK when it's started,
The following are copies of someone else's:
On the UNIX platform. The printed Chinese are garbled. In the log recorded with log4j, Chinese is also. ,
Because each application starts a Java process, the startup method is the Java $OPTS com.xxx.xxx.xxx
Where the variable $opts is the startup parameter of the JVM we want to set. Sets the JVM's character set here. The settings are as follows:
-ddefault.client.encoding=gbk-dfile.encoding=gbk-duser.language=zh
Add this, basically garbled problem will be done. If it is still uncertain, I will have no choice.
Log4j the Chinese characters in the log when logging to a file cannot be set with the above method. Set the method to:
Open the Log4j.properties file and set the output character sets on the inside file Appender. As shown below:
Log4j.appender.buss.encoding=gbk
--This paper comes from [TTT blog]:http://www.taoyoyo.net/ttt/post/148.html
=========================== Packaging ==============================
Kernel Patch: Display UTF-8 characters under character terminals
http://blogold.chinaunix.net/u/13265/showart.php?id=1008020