On 23/04/09 15:40, David Fishburn wrote:
>
> On Wed, Apr 22, 2009 at 4:26 AM, 张书瀚<[email protected]> wrote:
>> May be you want to try it:
>> FencView.vim : Autodetect multiple encodings
>> http://www.vim.org/scripts/script.php?script_id=1708
>
> Thanks for the reference.
>
> When I:
> 1. updated my iconv.dll
> 2. Installed the plugin
> 3. Added let g:fencview_autodetect = 1 to my vimrc
>
> When I opened the file I get the message (as mentioned on a previous reply):
> "rad29CC8.outlook" [converted][CONVERSION ERROR in line 377] 424L, 11122C
>
> In my vimrc I do not set:
> encoding
> fileencoding
> fileencodings
>
> But when I display them I see:
> encoding? = latin1
You'll probably need to set 'encoding' to UTF-8 if you want to avoid
conversion errors; see my post of a few minutes ago.
BTW, iconv is not needed to convert between Unicode and Latin1 because
in that case the algorithm is trivial, and Vim doesn't need external
assistance to implement it.
> fileencoding? =
> fileencodings? = ucs-bom
>
> After the file has failed to convert, none of the FencAutoDetect
> options work since it reports:
> "File is modified!"
>
> So it looks like it is too late to use that after the fact.
>
> Dave
Best regards,
Tony.
--
"This is a job for BOB VIOLENCE and SCUM, the INCREDIBLY STUPID MUTANT
DOG."
-- Bob Violence
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---