I look at some html file which is really in cp-1251 encoding.
Cyrillic characters are not shown properly, which is expected because vim can't 
know the encoding.

However, when I copy-and-paste such text (Shift-Y p), it stores it in the 
destination file as different byte array.

For example, bytes
cf ee f1 eb e5 e4 ed e8 e5 20 f2 e5 ec fb
are stored as
c3 8f c3 ae c3 b1 c3 ab c3 a5 c3 a4 c3 ad c3 a8 c3 a5

It appears, it probably tries to make it into some kind of UTF-8 encoding 
(judging by 0xc3 bytes). But why does it do this? Since it doesn't know the 
real encoding, it shouldn't modify bytes.

~/.vimrc is empty
vim is built from FreeBSD port.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
  • Why vim recodes byt... Yuri Vic

Raspunde prin e-mail lui