tyrasd / osmtogeojson

convert osm to geojson
http://tyrasd.github.io/osmtogeojson/
MIT License
683 stars 112 forks source link

How to convert preserving encoding when using cli? #102

Open drulia opened 5 years ago

drulia commented 5 years ago

I'm currently testing conversion of simple exports straight from openstreetmaps page to geojson, the problem I have encountered is that my output is in UTF-16 LE encoding while the exported .osm file is in UTF-8. This creates a problem with some characters, like è becoming ├¿.

Is there a way to make the cli tool to output same encoding as input or a way to set specific output encoding?

clemosm commented 5 years ago

I have the same problem and because of tht (I guess) the file isn't recognized by mapbox... but when overpass turbo uses osmtogeojson, it works fine... so...same question ? (I tried to change the encoding after the "translation" but it changes nothing...)