Saturday, January 22, 2011

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

On 23/01/11 9:34 AM, Ben Fritz wrote:
> On Jan 22, 3:48 am, Ben Schmidt<mail_ben_schm...@yahoo.com.au> wrote:
>>
>> I think so. :help 'fileencoding' describes conversion as taking place
>> when files are written and read, implying that when a file is actually
>> being edited, it is in 'encoding', and commands within Vim working on
>> the file would be expected to use 'encoding' also. 'fileencoding'
>> doesn't affect the encoding with which the file is edited and
>> manipulated in Vim; it just changes the way it is read and written.
>>
>
> Thanks, Ben. That explanation makes a ton of sense. I figured there
> was something subtle I was missing!
>
> So, is there a command to show the byte value of the character under
> the cursor, as it will be written? If I need to I can convert to
> binary but I'd rather just do something like 'ga'.

I don't think so, but I agree it would be nice. :-)

Ben.

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