Andreas Otto wrote:
Hi Andrei,

On Wednesday, 6. December 2006 13:37, Andrei A. Voropaev wrote:
Well, if iconv fails, then it means that those characters are not from
CP1252. Or maybe you've provided wrong options to iconv :)

The iconv command used is:

iconv -f CP1252 -t UTF-8 latin1.sql > utf8.sql

It looks like there are character sequenzes in the database which iconv cannot deal with for conversion.

Since iconv does not help here I thought it might be possible to replace the characters which are displayed with the marker <hex>, e. g. <96> which is a dash symbol.

However searching in vim for /<96> doesn't find the pattern, which makes me think that what I see in the terminal might be something different inside vim. I just don't know what to look for.


Cheers,
Andreas

When Vim displays <96> in blue, it isn't less-than, nine, six, greater-than (4 bytes) but 0x96 (one byte). You can search for it by hitting (in Normal mode) slash, Ctrl-V, x-for-X-Ray, nine, six, Enter. What you'll see on the command-line may be one of

        /<96>
        /~V

or something else but it should find your <96> bytes.

See ":help i_CTRL-V_digit" which applies in both Insert/Replace and Command-line modes.


Best regards,
Tony.

Reply via email to