开发者

Problem printing central european characters in Vim

开发者 https://www.devze.com 2023-02-20 20:55 出处:网络
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 (šđčćž/ŠĐČĆŽ).

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

精彩评论

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