Re: 中文编码问题

128 views
Skip to first unread message

Ben Fritz

unread,
Sep 28, 2012, 1:56:56 PM9/28/12
to vim...@googlegroups.com
For anyone not reading this in the Google Groups interface, Google's English translation of this message is actually reasonably clear.

But please follow up in English if you are able.

Here's the link to the discussion:

https://groups.google.com/d/topic/vim_use/EyW42nSVtd4/discussion

jiangfux

unread,
Sep 28, 2012, 8:05:47 PM9/28/12
to vim...@googlegroups.com
>
>-- 
>You received this message from the "vim_use" maillist.
>Do not top-post! Type your reply below the text you are replying to.
>For more information, visit http://www.vim.org/maillist.php

You can use putty instead of secureCRT, I used secureCRT before, but I found some problem like you.

王军

unread,
Sep 28, 2012, 9:07:26 PM9/28/12
to vim...@googlegroups.com
外国人看不懂啊

Foreigner can't understand.

-----邮件原件-----
发件人: vim...@googlegroups.com [mailto:vim...@googlegroups.com] 代表
yijie
发送时间: 2012年9月28日 20:07
收件人: vim...@googlegroups.com
主题: 中文编码问题

大家好,

刚开始使用vim,公司用secureCRT ssh到linux,用vim编辑中文时出现乱码。自己
机器和服务器的部分配置如下:
secureCRT配置:字体 Fixedsys(中文不会出现乱码),字符编码 UTF-8。
服务器端:
LC_ALL=zh_CN.UTF-8
LC_*="zh_CN.UTF-8"
LANG=zh_CN.UTF-8
CHARSET=UTF-8

/etc/sysconfig/i18n:

LANG="en_US"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"

.vimrc :

"let $LANG="zh_CN.UTF-8"
"set fileencodings=utf-8,gb2312,cp936,gbk,gb18030
"set fileencoding=utf-8
"set termencoding=utf-8
"set fileformats=unix
"set encoding=utf-8
"set fencs=utf-8
"source /usr/share/vim/vim73/delmenu.vim
"source /usr/share/vim/vim73/menu.vim

"language message zh_CN.utf-8
"set langmenu=zh_CN.UTF-8
"set helplang=cn
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
set fileencodings=utf-8,latin1
endif

(前面注释过的地方也都试过)。

vim输入中文时还是会有部分乱码,连最下面的提示也部分汉字是乱码。不知道是
不是还有哪需要设置。望大家指点,多谢!

wean

unread,
Sep 28, 2012, 11:01:52 PM9/28/12
to vim...@googlegroups.com
I use cygwin's bash, it's great.

在 2012年9月29日 上午9:07,王军 <wangju...@gmail.com>写道:
外国人看不懂啊

hu

unread,
Sep 29, 2012, 8:56:39 PM9/29/12
to vim...@googlegroups.com
��ã�

���ҵ������ļ�����ʾ���ֵ��������á�lang mes zh_CN.UTF-8������ģ���Ӧ�õ�
ͬ�����Ƕ�ġ�language message zh_CN.utf-8����
�����Ҿ����������û���⣬���������û�а�������йص����÷��������ļ���
�ʼ��ִ�С�����˵����������Ӧ�÷��ڱ�����������ĺ��档

"source /usr/share/vim/vim73/delmenu.vim
"source /usr/share/vim/vim73/menu.vim

���У���Ӧ�ü��һ�£�����ı�����������󷽣��Dz��ǻ����ظ��ı������ô��ڡ�

�й��˿��Կ�����ż���з����ĵ�Ҳ����(:


On 2012-9-28 20:07, yijie wrote:
> ��Һã�
>
> �տ�ʼʹ��vim����˾��secureCRT ssh��linux����vim�༭����ʱ�������롣�Լ������ͷ������IJ����������£�
> secureCRT���ã����� Fixedsys�����IJ���������룩���ַ���� UTF-8��
> �������ˣ�
> LC_ALL=zh_CN.UTF-8
> LC_*="zh_CN.UTF-8"
> LANG=zh_CN.UTF-8
> CHARSET=UTF-8
>
> /etc/sysconfig/i18n:
>
> LANG="en_US"
> SUPPORTED="en_US.UTF-8:en_US:en"
> SYSFONT="latarcyrheb-sun16"
>
> .vimrc :
>
> "let $LANG="zh_CN.UTF-8"
> "set fileencodings=utf-8,gb2312,cp936,gbk,gb18030
> "set fileencoding=utf-8
> "set termencoding=utf-8
> "set fileformats=unix
> "set encoding=utf-8
> "set fencs=utf-8
> "source /usr/share/vim/vim73/delmenu.vim
> "source /usr/share/vim/vim73/menu.vim
>
> "language message zh_CN.utf-8
> "set langmenu=zh_CN.UTF-8
> "set helplang=cn
> if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
> set fileencodings=utf-8,latin1
> endif
>
> (ǰ��ע�͹�ĵط�Ҳ���Թ�)��
>
> vim��������ʱ���ǻ��в������룬�����������ʾҲ���ֺ��������롣��֪���Dz��ǻ�������Ҫ���á�����ָ�㣬��л��
>
>
>
>


Reply all
Reply to author
Forward
0 new messages