Tuesday, October 5, 2010

Re: How to set utf-8 locally (for a buffer) on loading the file

On Tue, Oct 5, 2010 at 2:22 PM, esquifit <esquifit@googlemail.com> wrote:
>
>        NOTE: Changing this option will not change the encoding of the
>        existing text in Vim.  It may cause non-ASCII text to become invalid.
>
> This sentence is somewhat obscure. If I change 'encoding' after having
> loading a buffer, it effectively causes 'some non-ASCII text to become
> invalid'. What does then the statement mean, that 'this option will
> not change the encoding of the existing text in VIm'?

Changing encoding at runtime from latin1 to UTF-8 wouldn't cause you
to lose any text. However, if you're editing Egyption Hieroglyphs /
Japanese Kana, then you might lose text if you change encoding from
UTF-8 to latin1 at runtime.

Hope this helps,
Kyungjoon

--
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: