mapbox/tilemill — Issue #864: Error parsing KML with accented characters non-local files
Author: gmaclennan
Created: 2011-10-31 22:15:51+00:00
State: open

I get the following error:

Error: OGR Plugin: XML parsing of KML file failed : not well-formed (invalid token) at line 19, column 26

from this KML:

Fusiontables folder

Sargento Puño Camp
#BasicStyle

<div class="googft-info-window" style="font-family:sans-serif">
<b>Desc:</b> Sargento Puño Camp<br>
<b>Status:</b> ACTIVE<br>
<b>Type:</b> Camp<br>
<b>X:</b> 210595<br>
<b>Y:</b> 9643410<br>
<b>Lat:</b> -3.22280072631399<br>
<b>Long:</b> -77.6040046294179<br>
<b>Source:</b> Oxy EIA
</div>

-77.6040046294179,-3.22280072631399,0

When loading from this link:

`https://www.google.com/fusiontables/exporttable?query=select+col5+from+1612141+&o=kml&g=col5`

However if I load this file locally there is no error.

The character at line 19, column 26 is the `ñ` in `Puño`. Changing this to a non-accented `n` allows network import with no errors.