logo separator

[mkgmap-dev] Re: bad file format error

From Toby Speight T.M.Speight.90 at cantab.net on Sun May 17 20:15:12 BST 2009

0> In article <4A105A9C.3080303 at free.fr>,
0> frmas <URL:mailto:frmas at free.fr> ("Frmas") wrote:

Frmas> Error at line 148424, col 84
Frmas> Bad file format: cartes/paris.osm

0> In article <87ljovy2k0.fsf at balti.rawlyn.homeip.net>,
0> Toby Speight <URL:mailto:T.M.Speight.90 at cantab.net> ("Toby") wrote:

Toby> What encoding is the file?  It looks like there's a mix of Latin-1 and
Toby> UTF-8 in that source file.  How was it generated?


I forgot to say: it may help to see the bytes of the file.  Try

/--------
| head cartes/paris.osm | grep -F '<?xml'
\--------

to see what encoding the XML claims to be, and

/--------
| sed -n -e '148424{' -e 'p' -e 'q' -e '}' cartes/paris.osm | od -t x1c
\--------

to view the problematic part.



More information about the mkgmap-dev mailing list