Today, the Chinese input method is installed on the LinuxSLC5.3 and the process is as follows:
Original from the "Bit network", reproduced please keep the original link: http://soft.chinabyte.com/os/102/11459102.shtml
1. Install the Chinese font library yum install "Font-chinese"
2. Install Scim Input Method yum Install "scim*"
3. Installing Scim-lang-chinese,scim-pinyin Yum Install Scim-lang-chinese scim-pinyin//It is not clear if this step is necessary, but in case of error, it is loaded.
Everything went well. After the installation has been successfully restarted, crtl+ space can choose to enter the Chinese font, you can also enter the correct Chinese font in VI, CAT file can display Chinese, Chinese web page can be displayed normally.
However, when I telnet with Xshell, the Chinese characters in VI file,file are garbled and cannot be entered correctly. Cat file can be displayed normally. Search on the Internet a lot, try to modify the. bash_profile,/etc/sysconfig/i18n file does not solve the garbled problem, and later found the correct solution in a blog post:
Original from the "Bit network", reproduced please keep the original link: http://soft.chinabyte.com/os/102/11459102.shtml
Because the default is GB encoding under Windows, and Vim is the default UTF-8 encoding (gedit default is also Utf-8), so remote VI will be garbled after opening. You need to add a configuration file yourself, as follows: (Root user)
$vi ~/.VIMRC
Let &termencoding=&encoding
Set FILEENCODINGS=UTF-8,GBK
$:wq
Once saved, the VI can be displayed and entered normally. In addition, you can set the syntax highlighting (syntax on) in the configuration file, the TAB key (set tabstop=4), the line number (set numbers), and so on. Specific Reference blog: http://happysuky.blog.sohu.com/132535161.html
Original from the "Bit network", reproduced please keep the original link: http://soft.chinabyte.com/os/102/11459102.shtml