
Toby Speight a écrit :
I forgot to say: it may help to see the bytes of the file. Try
/-------- | head cartes/paris.osm | grep -F '<?xml' \--------
This is it : head cartes/paris.osm | grep -F '<?xml' <?xml version='1.0' standalone='no'?>
/-------- | sed -n -e '148424{' -e 'p' -e 'q' -e '}' cartes/paris.osm | od -t x1c \--------
to view the problematic part.
As the result could be malformated, see file attached. Francois 0000000 20 20 3c 6e 6f 64 65 20 69 64 3d 27 39 34 31 33 < n o d e i d = ' 9 4 1 3 0000020 35 32 35 35 27 20 6c 61 74 3d 27 34 38 2e 38 37 5 2 5 5 ' l a t = ' 4 8 . 8 7 0000040 36 31 39 38 36 27 20 6c 6f 6e 3d 27 32 2e 34 32 6 1 9 8 6 ' l o n = ' 2 . 4 2 0000060 33 33 34 36 27 20 75 73 65 72 3d 27 6e 69 74 72 3 3 4 6 ' u s e r = ' n i t r 0000100 69 78 27 20 78 61 70 69 3a 75 73 65 72 73 3d 27 i x ' x a p i : u s e r s = ' 0000120 6a 6f 73 e9 2c 6a 6f 73 c3 a9 6d 2c 45 73 70 65 j o s 351 , j o s 303 251 m , E s p e 0000140 72 61 6e 7a 61 33 36 2c 43 68 61 72 6c 69 65 20 r a n z a 3 6 , C h a r l i e 0000160 45 63 68 6f 2c 48 61 72 64 61 6e 67 65 6c 73 2c E c h o , H a r d a n g e l s , 0000200 6e 69 74 72 69 78 27 20 74 69 6d 65 73 74 61 6d n i t r i x ' t i m e s t a m 0000220 70 3d 27 32 30 30 39 2d 30 35 2d 31 37 54 30 39 p = ' 2 0 0 9 - 0 5 - 1 7 T 0 9 0000240 3a 35 33 3a 34 38 5a 27 20 75 69 64 3d 27 31 32 : 5 3 : 4 8 Z ' u i d = ' 1 2 0000260 35 32 39 39 27 20 76 65 72 73 69 6f 6e 3d 27 32 5 2 9 9 ' v e r s i o n = ' 2 0000300 38 27 20 63 68 61 6e 67 65 73 65 74 3d 27 31 32 8 ' c h a n g e s e t = ' 1 2 0000320 31 39 32 32 32 27 3e 0d 0a 1 9 2 2 2 ' > \r \n 0000331