pierluigiderosa / Qgis2Ras

QGIS plugin for HEC-RAS data input
7 stars 0 forks source link

'ascii' codec can't encode character #6

Open marcoalicera opened 7 years ago

marcoalicera commented 7 years ago

Hi, I have tried to use the plugin in a system with folder names with special characters and I got the following error:

Traceback (most recent call last):
              File "C:/Users/me/.qgis2/python/plugins\Qgis2Ras\qras_dialog.py", line 118, in writeTxt
                fileName = os.path.splitext(str(fileName))[0]+'.sdf'
            UnicodeEncodeError: 'ascii' codec can't encode character u'\xd6' in position 8: ordinal not in range(128)

Is it possible to fix it?

I tried myself but it was too much coding. Here a post about the issue with a proposal to address it: https://pythonhosted.org/kitchen/unicode-frustrations.html