<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[刘新修]]></title> 
<link>http://pic1.liuxinxiu.com:80/index.php</link> 
<description><![CDATA[刘新修的个人博客 (Liuxinxiu'S Blog)]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[刘新修]]></copyright>
<item>
<link>http://pic1.liuxinxiu.com:80/SSH_coding/</link>
<title><![CDATA[解决Linux下SSH等终端乱码问题]]></title> 
<author>刘新修 &lt;admin@yourname.com&gt;</author>
<category><![CDATA[Linux/Unix]]></category>
<pubDate>Wed, 15 Sep 2010 07:02:00 +0000</pubDate> 
<guid>http://pic1.liuxinxiu.com:80/SSH_coding/</guid> 
<description>
<![CDATA[ 
	<p>1.<strong><span style="color: blue">vi /etc/sysconfig/i18n</span></strong></p><p><strong>Centos5.5原来内容是：</strong></p><p><span style="color: #0000ff">//LANG=&quot;en_US.UTF-8&quot;<br />//SYSFONT=&quot;latarcyrheb-sun16&quot;</span></p><p><br /><strong>将内容改为 </strong><br /><span style="color: #ff0000">LANG=&quot;zh_CN.GB18030&quot; <br />LANGUAGE=&quot;zh_CN.GB18030:zh_CN.GB2312:zh_CN&quot; <br />SUPPORTED=&quot;zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en&quot; <br />SYSFONT=&quot;lat0-sun16&quot; </span></p><p>&nbsp;</p><p><a target="_blank" href="http://at.liuxinxiu.com/2010/09/image/SSH_UTF-8.jpg"><img height="304" alt="" width="234" src="http://at.liuxinxiu.com/2010/09/image/SSH_UTF-8.jpg" /></a></p><p><span style="color: #ff0000"><strong>去掉被选中中的：LANG=''zh_CH.UTF-8' 替换成下面的：</strong></span></p><p><a target="_blank" href="http://at.liuxinxiu.com/2010/09/image/SSH_ZH-CH.jpg"><img height="310" alt="" width="642" src="http://at.liuxinxiu.com/2010/09/image/SSH_ZH-CH.jpg" /></a><br /><br /><span style="color: #0000ff">这样中文在SSH,telnet终端就可以正常显示了。 </span><br /><br />2.安装LINUX的时候选择的是中文字,但是使用的时候出现了乱码解决方法是在命令提示 <br />下输入export LANG=C <br /><br />3.export LC_ALL=zh_CN.GBK <br />export LANG=zh_CN.GBK</p><p>**************************************************************************</p><p>另外还有一种情况非LINUX主机本身所导致，比如你在SSH执行命令时候，窗体出现部分都是乱码，也无法编辑HTML中的中文部分，非常麻烦，你的第一反应会考虑是LINUX主机的编码设置问题，实际上SSH终端连接器，也会导致此类情况！</p><p><strong>以实际SecureCRT-v6.58H操作说明：</strong></p><p><span style="color: #0000ff"><strong>最一开始执行YUM : yum -y install gcc gcc-c++ make imake autoconf automake </strong></span></p><p><span style="color: #0000ff"><strong>【出现乱码】如下：</strong></span></p><p><strong><a target="_blank" href="http://at.liuxinxiu.com/2010/09/image/SecureCRT_default.jpg"><img alt="" src="http://at.liuxinxiu.com/2010/09/image/SecureCRT_default.jpg" /></a></strong></p><p><span style="color: #0000ff"><strong>SecureCRT默认文字编码方式是default 如下：</strong></span></p><p><strong><a target="_blank" href="http://at.liuxinxiu.com/2010/09/image/SecureCRT_default1.jpg"><img height="599" alt="" width="614" src="http://at.liuxinxiu.com/2010/09/image/SecureCRT_default1.jpg" /></a></strong></p><p><strong><span style="color: #0000ff"><strong>将SecureCRT默认文字编码方式是GB2312 如下：</strong></span></strong></p><p><strong><span style="color: #0000ff"><strong><a target="_blank" href="http://at.liuxinxiu.com/2010/09/image/SecureCRT_GB2312-1.jpg"><img height="547" alt="" width="593" src="http://at.liuxinxiu.com/2010/09/image/SecureCRT_GB2312-1.jpg" /></a></strong></span></strong></p><p><strong><span style="color: #0000ff"><strong><span style="color: #0000ff"><strong>然后再次执行YUM : yum -y install gcc gcc-c++ make imake autoconf automake </strong></span></strong></span></strong></p><p><strong><span style="color: #0000ff"><strong><span style="color: #0000ff"><strong>【一切正常了！！！】</strong></span></strong></span></strong></p><p><span style="color: #0000ff"><span style="color: #0000ff"><span class="top11"><font color="#000000">&nbsp;</font></span></span></span></p><p><strong>Linux中的SSH终端乱码问题的解决</strong></p><p><br /><strong>1.vi /etc/sysconfig/i18n</strong></p><p><strong>英文版LINUX将内容改为：</strong></p><p><span style="color: #800000"><strong>LANG=&quot;zh_CN.GB18030&quot;<br />LANGUAGE=&quot;zh_CN.GB18030:zh_CN.GB2312:zh_CN&quot;<br />SUPPORTED=&quot;zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en&quot;<br />SYSFONT=&quot;lat0-sun16</strong></span><strong>&quot;</strong></p><p><strong>这样中文在SSH,telnet终端就可以正常显示了。</strong></p><p><strong>2.安装Linux的时候选择的是中文字,但是使用的时候出现了乱码解决方法是在命令提示下输入</strong><span style="color: #800000"><strong>export LANG=C</strong></span></p><p><strong>3.</strong><span style="color: #800000"><strong>export LC_ALL=zh_CN.GBK<br />export LANG=zh_CN.GBK</strong></span></p>
]]>
</description>
</item><item>
<link>http://pic1.liuxinxiu.com:80/SSH_coding/#blogcomment</link>
<title><![CDATA[[评论] 解决Linux下SSH等终端乱码问题]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://pic1.liuxinxiu.com:80/SSH_coding/#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>