From: Carlos Z.F. L. <car...@us...> - 2005-06-30 15:30:35
|
On Wed, Jun 29, 2005 at 09:38:56AM +0100, Wenzhi Liang wrote: > Excellent! Thanks wandys, > > On 6/28/05, Alecs King <al...@pe...> wrote: > > > > > > ie. > > > > > > > > :h intro@cn (under GBK locale, aka in vim, enc=euc-cn) shows nothing > > > > but malformed characters. > > > > I _was_ kinda misleading here. The truth is that, euc is not gbk but > > gb2312. Some of our docs contain some 'evil' characters that have been > > converted from gbk. But these characters are gbk-only [1] and cannot be > > successfully converted to enc-cn (aka gb2312). Hence the problem arises. > > That explains why on Slackware if I set LANG to zh_CN.gbk, things are OK. Is > that a limitation of Vim though? > In GBK environment, users can get GBK support for vim by "enc=cp936". It works in both *nix and windows. But if you search on internet, most documents and tutorials suggest only "euc-cn". -- Best Regards, Carlos |