Re: Re: [python-chinese][OT]在Windows下??BIG5??的繁?中文文件,有什麽好的方案

"fluke.l" <[email protected]> Tue, 22 Jan 2008 11:11:12 +0800
Newsgroups gmane.comp.python.chinese
Message-ID <[email protected]>
唔。明白了。说到底就是Jiahua说的识别编码。既然不能自动识别就手工来吧:)


2008-01-22 



fluke.l 



发件人: Shixin Zeng 
发送时间: 2008-01-22  10:57:41 
收件人: [email protected] 
抄送: 
主题: Re: [python-chinese][OT]在Windows下BIG5a的繁w中文文件,有什麽好的方案 
 
你应该在~/.vimrc中设置
set fileencodings=Big5, GBK, UTF-8
之后再打开这个文件。
你在打开之后再set fileencoding是设置这个文件的输出编码,无法改变它的输入编码。
2008/1/21 fluke.l <[email protected]>:
>
>
> 我用vim打开big5文件的时候,是乱码,然后set
> fileencoding为big5,并没有变化,关闭的时候提示文件已经被修改。我估计和我之前说的对big5再执行一次utf8->big5类似。
>
> 你确定这样做是可以的吗?要不我发一个big5的文件你试试?
>
>
>
> 2008-01-22 ________________________________
>
> fluke.l ________________________________
>
> 发件人: Jiahua Huang
> 发送时间: 2008-01-22  10:32:50
>
> 收件人: [email protected]
> 抄送:
> 主题: Re: [python-chinese][OT]在Windows下BIG5a的繁w中文文件,有什麽好的方案
>
>
>
> 不要跟 mIRC 那样把字体和编码搞混了
>
> 2008/1/22 大熊 <[email protected]>:
> > emeditor的设置[All Configure]->[File]->[Open
> > Encoding],改成你要的编码就行了。字体应该不用等特别设置,不过Big5用MingLiu总没错吧。
> > 如果发现打开的文件编码有问题,可以手工在右下角的状态栏处的编码区双击,然后在弹出的菜单中选择你要的编码,很方便的
> >
>
> Windows 默认宋体都是包含了繁体字的,
> 而且即使不包含, Windows 也会自动选字
>
> > vim稍加配置也能达到类似的效果,不过要安装插件,再作些定制,麻烦些
> >
>
> vim 自己就能自动识别编码, 如果你没打开的话,
> 在 .vimrc 加上
> set fileencodings=utf-8,cp936,big5,euc-jp,euc-kr,latin1,ucs-bom
>
> 手工设置编码是
> :set fileencoding=big5
> _______________________________________________
> 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
>
-- 
Best Regards
Shixin Zeng
_______________________________________________
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