I'm trying to export with python 2.7 some shapefiles and CAD files that could have specials characters in their filename, like accent marks. In example, I want to have this:
But when I export the files the filename is like this:
I've already changed the encoding to UTF-8 with
# -*- coding: utf-8 -*-, but it don't result anyway. The fact is that when I create the directory that must contain the files and has the same file name, the accent marks are writed correctly like in the first example. I'm not sure if I have to use the encode() or decode() functions to face that.