|
发表于 2010-5-19 20:21:50
|
显示全部楼层
刚才测试了一下,结论是:楼主的中文环境配置有点不全面。
cat:- this is a test file to show if the command 'cat' and editing tool 'vim' can both encode gbk
- ����һ�������ļ�����GBK���롣
复制代码 vim:- this is a test file to show if the command 'cat' and editing tool 'vim' can both encode gbk
- 这是一个测试文件,用GBK编码。
复制代码 如果没错的话,你的locales里面只有Chinese-UTF8,缺少像GBK或者GB2312这样的能支持windows下编码。
建议:
1.重新配置locales,- # dpgk-reconfigure locales
复制代码 加入GBK或GB2312至少一个,并且在以后就以这个环境配置登录。(不推荐)
2.或者如楼上所说,用iconv工具将这个文本转码,转为UTF8。具体如何做查一下man手册吧。
3.另一种方法是在gnome终端的菜单栏》终端》设置字符编码,加入GBK等,并且选中其作为当前的编码方式。并且选中它为当前的编码方式。 |
|