On 19/07/09 10:39, Nicolas Aggelidis wrote:
>
> hi, when i try to install a vimball or do something like:
>
> :helptags $HOME\vimfiles\doc
>
>
> i get
>
> E670: Mix of file encodings within a language ....
>
>
> when i open the doc files i see that some are in utf8 others in latin1
> and others utf8 with bom
>
> is there any way to deal with this problem?
>
> if every file needs to be the same encoding is there anyway to bach
> convert the encodings of all files?
>
>
> best regards,
> nicolas

That message comes from the ":helptags" command, which is also used by 
the vimball plugin after unpacking a vimball. Comparing with the 
distributed files in $VIMRUNTIME/doc/*.txt, I see that most are in 7-bit 
US-ASCII (a common subset of Latin1 and UTF-8), a few are in 8-bit 
Latin1 (i.e., Latin1 text with at least one character in the range 
0x80-0xFF), at least three (arabic.txt, hebrew.txt and options.txt) are 
in UTF-8 (with some Arabic, Hebrew and Greek characters respectively), 
farsi.txt is in some Persian encoding (which my Vim mistakes for 
Latin1), but none has a BOM.

As a first attempt, try (in a Vim with 'encoding' set to utf-8)

        :args ~/vimfiles/doc/*.txt
        :argdo setlocal nobomb | update

to remove all BOMs; then try

        :helptags ~/vimfiles/doc

again. Does it help? If it doesn't, you may have to convert all these 
files to UTF-8 (assuming you don't need to keep 8-bit Latin1 files in 
Latin1 for the sake of Vim versions with no multi-byte support).

If you want to find upper-ascii chracters in Latin1 files, use the 8g8 
command in Normal mode (see ":help 8g8").


Best regards,
Tony.
-- 
Any father who thinks he's all important should remind himself that
this country honors fathers only one day a year while pickles get a
whole week.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to