SSH connection to fedora core2 from windows with SSH causes garbled characters in the text mode of the SSH Terminal

Source: Internet
Author: User
Tags i18n
Connect to fedora core2 through SSH in Windows
It is mainly because the fedora core2 encoding is UTF-8, so it cannot be correctly displayed.
1. temporary solution:
Run the following command every time you log on via SSH:
Chinese: Export lang = zh_cn.gb2312
English: Export lang = "en_us"
Export lc_all = "en_us"
For example, [root @ localhost ~] # Export lang = zh_cn.gb2312

2. (FIND) a stable solution:
The SSH terminal is garbled in as4, but as3 does not. Copy the/etc/sysconfig/i18n file in as3 to as4.

I18n file under as3
--------------------------
Lang = "zh_cn.gb18030"
Language = "zh_cn.gb18030: zh_cn.gb2312: zh_cn"
Supported = "zh_cn.gb18030: zh_cn: ZH"
Sysfont = "lat0-sun16"
Sysfontacm = "8859-15"

I18n file under as4
------------------
Lang = "zh_CN.UTF-8"
Supported = "zh_CN.UTF-8: zh_cn: ZH"
Sysfont = "latarcyrheb-sun16"

I use
------------------
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"
Sysfontacm = "8859-15"

/Usr/share/doc/initscripts-*/sysconfig.txt explanation:
--------------------------------------------------------------------
Lang = set locale for all categories, can be any two letter ISO
Language code
Lc_ctype = localedata configuration for classification and conversion
Of Characters
Lc_collate = localedata configuration for collation (sort order)
Strings
Lc_messages = localedata configuration for translation of yes and no
Messages
Lc_numeric = localedata configuration for non-monetary numeric data
Lc_monetary = localedata configuration for monetary data
Lc_time = localedata configuration for date and time
Lc_all = localedata configuration overriding all of the above
Language = Can Be A: separated list of ISO language codes
Linguas = can be a' separated list of ISO language codes

The above variables are used in/etc/profile. d/lang. Sh.

Sysfont = any font that is legal when used
/Usr/bin/consolechars-F $ sysfont...
(See console-Tools Package for lelechars command)

Unimap = any SFM (screen font map, formerly called Unicode Mapping
Table-see consolechars (8 ))
/Usr/bin/consolechars-F $ sysfont -- SFM $ unimap

Sysfontacm = any ACM (Application charset map-see consolechars (8 ))
/Usr/bin/consolechars-F $ sysfont -- ACM $ sysfontacm

The above is used by the/sbin/setsysfont command (which is run
By RC. sysinit at boot time .)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.