Saturday, January 22, 2011

Re: cp1252 characters when enc=utf-8, fenc=cp1252

On 01/21/2011 09:37 PM, Ben Fritz wrote:

When fileencoding and encoding are different, vim converts file content from
fileencoding to encoding on read and vice versa on write. So you
actually work
with utf8 characters. If you want to work with cp1251, you need to change
encoding (and fonts, you can use EncodingChanged autocmd for this, and
may be
the $LANG).

But characters like n-dash in text files is bad idea. It's better to use
'–' or '--' or something like this, that will be translated later to
n-dash. May be it will be better to convert all files to utf8. Also, if you
need just enter characters like n-dash, you can use level3 in xkb.

--
sergio.

--
You received this message from the "vim_use" 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

No comments: