kartograph/kartograph.py

Incompatible with non-ASCII filenames?

Opened this issue · 0 comments

ssp commented

As soon as I’m trying to include a SHP file with an umlaut in its name kartograph fails.

This seems to come from the script explicitly breaking Unicode strings (and converting them to ASCII in shplayer.py / init’s

if isinstance(src, unicode):
    src = src.encode('ascii', 'ignore')

and other parts of the script requiring ASCII strings for some reason I could not understand by looking at the code.

The ability to deal with Unicode file names would make the tool more useful.