Rook
Rook

Reputation: 62538

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' 1001 options in a time like this. Can't it do a simple thing and just print what's on screen?!

Upvotes: 0

Views: 346

Answers (1)

sidyll
sidyll

Reputation: 59297

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?

Upvotes: 3

Related Questions