开发者

Problem printing central european characters in Vim

Here's the problem in a nutshell.

I wrote a text file which I need to print out (in a hurry) that contains central european characters (šđčćž/ŠĐČĆŽ).

Vim's encoding settings are as folows;

set encoding=cp1250

set fileencoding=

Upon printing out comes garbage. What should be changed to fix that?

Really hate Vim's frekin' 100开发者_开发问答1 options in a time like this. Can't it do a simple thing and just print what's on screen?!


Check the option printencoding.

The help says it's empty by default, and when the encoding is multi-byte Vim tries to convert them to the printencoding. Plus, if it's empty "the conversion will be to latin1". This is what may be causing the trouble.

I'd like to ask: why not to use UTF-8?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜