UMR-PASSAGES / DissolveWithStats

QGIS plugin to dissolve geometries and calculate statistics on attributes in the process
6 stars 5 forks source link

UnicodeEncodeError #3

Closed tanguyj closed 9 years ago

tanguyj commented 9 years ago

Hello,

When i'm running DissolvewithStats, i've got this error :

File "C:/Users/tanguy/.qgis2/python/plugins\DissolveWithStats\dissolve_stats.py", line 71, in run self.dlg = dissolve_stats_dialog.DissolveWithStatsDialog(self.iface) File "C:/Users/tanguy/.qgis2/python/plugins\DissolveWithStats\dissolve_stats_dialog.py", line 84, in init selectedLayerName = str(self.ui.comboLayerList.currentText()) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 16: ordinal not in range(128)

juliepierson commented 9 years ago

Hello,

Thanks for letting me know about this bug. Could you please try the original dissolve tool on which my plugin is based (with the same data) and see if the same problem occurs (vector menu, geoprocessing tools, dissolve) ?

Thank you,

Julie.

Le 15/10/2014 09:27, tanguyj a écrit :

Hello,

When i'm running DissolvewithStats, i've got this error :

File "C:/Users/tanguy/.qgis2/python/plugins\DissolveWithStats\dissolve_stats.py", line 71, in run self.dlg = dissolve_stats_dialog.DissolveWithStatsDialog(self.iface) File "C:/Users/tanguy/.qgis2/python/plugins\DissolveWithStats\dissolve_stats_dialog.py", line 84, in init selectedLayerName = str(self.ui.comboLayerList.currentText()) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 16: ordinal not in range(128)

— Reply to this email directly or view it on GitHub https://github.com/juliepierson/DissolveWithStats/issues/3.

Géomaticienne UMR 5185 ADESS, CNRS Maison des Suds 12, Esplanade des Antilles Pessac, France Tel +33 (0)5 56 84 82 07 http://www.ades.cnrs.fr

tanguyj commented 9 years ago

it works with the original tool and the same data. Tanguy

juliepierson commented 9 years ago

Ok, thanks. Could you send me your data so that I can reproduce the bug ?

Le 15/10/2014 14:07, tanguyj a écrit :

it works with the original tool and the same data. Tanguy

— Reply to this email directly or view it on GitHub https://github.com/juliepierson/DissolveWithStats/issues/3#issuecomment-59195505.

Géomaticienne UMR 5185 ADESS, CNRS Maison des Suds 12, Esplanade des Antilles Pessac, France Tel +33 (0)5 56 84 82 07 http://www.ades.cnrs.fr

tanguyj commented 9 years ago

I tried again with the same data, but I removed all the accents é è ë , and it works My data were in UTF-8

pcav commented 9 years ago

Not solved with the new version?

juliepierson commented 9 years ago

Oops, I had forgotten this bug. Just solved it, thanks for reminding me.