Tuesday, September 25, 2012

Re: E670: Mix of help file encodings within a language

On 25/09/12 10:32, Marco wrote:
> Hi,
>
> I have a bunch of help files in my ~/.vim/doc directory. Most of
> them are UTF-8, a few ASCII. While adding a new file and running
> :helptags I get the following error:
>
> E670: Mix of help file encodings within a language
>
> I found http://article.gmane.org/gmane.editors.vim/80084, but the
> described solution didn't work for me. The "tags" file stays empty.
> If I remove the recently added file, it works fine. The new added
> file is UTF-8 encoded, but so are others.
>
> What can I do to fix this?
>
>
> Marco
>
>
Does the new helpfile have a BOM? If it does, try removing it.

:e ~/.vim/doc/foobar.txt " replacing "foobar" by the filename
:verbose setlocal bomb?
bomb
:setlocal nobomb
:w
:helptags ~/.vim/doc

If that doesn't work, check your 'encoding':

:verbose set encoding?

Mine is UTF-8, and it sees almost all helpfiles shipped with VIM as
UTF-8 (eval.txt is an exception). But if a file contains as few as one
character which is invalid for UTF-8, the file won't be seen as UTF-8
even if the rest of it is OK

:setl fenc?
fileencoding=latin1
8g8

This (see :help 8g8) will move the cursor to the next (if any) character
in the file which is invalid for UTF-8. (If the cursor is already on
such a character, it will not move, and neither will it if there is no
such invalid character in the file, but in the latter case you'll get a
beep.)


Best regards,
Tony.
--
OMNIVERSAL AWARENESS?? Oh, YEH!! First you need four GALLONS of
JELL-O and a BIG WRENCH!! ... I think you drop th' WRENCH in the JELL-O
as if it was a FLAVOR, or an INGREDIENT ... or ... I ... um ...
WHERE'S the WASHING MACHINES?

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