On 10/09/08 16:12, Vadim Zeitlin wrote:
> Hello Tony,
>
> On Sep 10, 3:30 am, Tony Mechelynck<[EMAIL PROTECTED]>
> wrote:
>>> Assuming I am not missing some trivial option/workaround which would
>>> allow
>>> to open these files in Vim
> [obviously I did... sorry for the noise and thanks a lot for your
> answer!]
>
>> 2. What is your 'encoding' option set to? Vim cannot, for any purpose,
>> use any character which has no representation in your current 'encoding'.
>
> This was the problem, adding "set encoding=utf-8" did fix the
> problem. Sorry for
> not thinking to try it, I somehow thought that encoding only applied
> to the file contents
> and not the file names.
>
> Thanks a lot for your helpful answers Tony and John!
> VZ
'encoding' applies to file contents (after conversion by 'fileencoding'
as set by 'fileencodings' or ++enc when reading), but it also applies
(after 'termencoding') to what you type at the command-line and (after
":scriptencoding") to what is read from a sourced script. It's always
better to set 'encoding' to a superset of everything you might be using
in your Vim session.
Best regards,
Tony.
--
"Queensboro president Donald Mannis, charged with receiving bribes in
exchange for city contracts, resigned on Tuesday. Mannis feels he must
devote more time to impending litigation, some of which might emanate
from a recent statement he made comparing New York Mayor Ed Koch to
Nazi Martin Bormann. A spokesman from the Bormann estate said they are
weighing the odds of a slander suit. Mayor Koch could naturally be
reached for comment, but we chose not to listen."
-- Dennis Miller, "Saturday Night Live"
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---