That works, thanks. It does leave me with french names like "Rserve de parc du Lac-Chitek," but that's easy to fix.
Sam On 2/6/12, Tyler Gunn <[email protected]> wrote: > I haven't run into this before myself, but I suspect that the > character encoding for the boundaries files you're dealing with must > be something other than UTF-8. The french characters are likely > causing issues. Try opening up the file in Quantum GIS as a vector > layer, and then do a "Save as" for that layer. Ensure you choose > UTF-8 when you save the layer. > > Tyler > > On Mon, Feb 6, 2012 at 11:50 AM, Sam Dyck <[email protected]> wrote: >> Hi >> >> I've been working with ogr2osm to convert shapefiles from MLI to >> replace Sam Vekemans' Geobase imports of out of date provincial park >> boundaries. Running the script gives me this error. >> "Traceback (most recent call last): >> File "ogr2osm/ogr2osm.py", line 783, in <module> >> w.element("tag", k=tagKey.decode("utf-8"), v=tagValue.decode("utf-8")) >> File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode >> return codecs.utf_8_decode(input, errors, True) >> UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 1: >> invalid continuation byte" >> >> JOSM gave me an error when I tried to open the file, I opened the file >> in nano and found some tags not closed. Attempted to clean up the >> file, but JOSM told me that file had no data. The shapefile itself is >> fine, any ideas? >> >> _______________________________________________ >> Talk-ca mailing list >> [email protected] >> http://lists.openstreetmap.org/listinfo/talk-ca > _______________________________________________ Talk-ca mailing list [email protected] http://lists.openstreetmap.org/listinfo/talk-ca

