Re: [OT]在Windows下寫BIG5編 碼的繁體中文文件,有什麽好的 方案

"大熊" <[email protected]> Tue, 22 Jan 2008 11:23:05 +0800
Newsgroups gmane.comp.python.chinese
Message-ID <[email protected]>
在08-1-22,Jiahua Huang <[email protected]> 写道:
>
> 2008/1/22 大熊 <[email protected]>:
> > 在08-1-22,Jiahua Huang <[email protected]> 写道:
> > > vim 自己就能自动识别编码, 如果你没打开的话,
> > > 在 .vimrc 加上
> > > set fileencodings=utf-8,cp936,big5,euc-jp,euc-kr,latin1,ucs-bom
> >
> > 这样vim自动选择时会首先尝试简体中文,建议把big5移到前面
>
> 用不着, gvim 是依次测试,
> utf8 通不过就用下一个,直到 big5


某些情况下,繁体可以被正常识别成简体的,所以big5置前才有保证

> 考虑使用fencview插件,可以在菜单中动态指定文件的编码
> >
>
> 只是菜单的话,简单写下 .gvimrc 就行了
>
> 譬如
> an 20.4009        &Edit.-SEP6-                           <Nop>
> an 20.4009.10      &Edit.MouseStype.&Xterm         :behave xterm<CR>
> an 20.4009.11      &Edit.MouseStype.&MsWin         :behave mswin<CR>
>
> an 20.4119.10     &Edit.Fileencoding.&GBK        :set fileencoding=gbk<CR>
> an 20.4119.11     &Edit.Fileencoding.GB18030     :set
> fileencoding=gb18030<CR>
> an 20.4119.12     &Edit.Fileencoding.&Big5       :set
> fileencoding=big5<CR>
> an 20.4119.13     &Edit.Fileencoding.&UTF-8      :set
> fileencoding=utf-8<CR>
> an 20.4119.14     &Edit.Fileencoding.UTF-16      :set
> fileencoding=utf-16<CR>
> an 20.4119.15     &Edit.Fileencoding.EUC-&JP     :set
> fileencoding=euc-jp<CR>
> an 20.4119.16     &Edit.Fileencoding.EUC-&KR     :set
> fileencoding=euc-kr<CR>
> _______________________________________________
> python-chinese
> Post: send [email protected]
> Subscribe: send subscribe to [email protected]
> Unsubscribe: send unsubscribe to  [email protected]
> Detail Info: http://python.cn/mailman/listinfo/python-chinese


有现成的用岂不很好:)

-- 
茫茫人海,你是我的最爱

_______________________________________________
python-chinese
Post: send [email protected]
Subscribe: send subscribe to [email protected]
Unsubscribe: send unsubscribe to  [email protected]
Detail Info: http://python.cn/mailman/listinfo/python-chinese