itopidea 发表于 2011-3-17 08:43:37

linode centos的vi下中文乱码如何解决

我设置.vimrc:


set fileencodings=utf-8,gb2312,gbk,gb18030
set termencoding=utf-8
set fileformats=unix
set encoding=prc

设置Locale:/etc/profile:
export LANG=zh_CN.UTF-8export LC_CTYPE="zh_CN.UTF-8"




但是windows下putty链接 vi编辑 还是乱码


怎么解决?

licess 发表于 2011-3-17 09:09:50

回复 1# 的帖子

putty 也需要设置,编码选择utf-8,选个中文字体,一般就行了
页: [1]
查看完整版本: linode centos的vi下中文乱码如何解决