Opened 5 years ago

Last modified 13 months ago

#2810 new defect

wxGUI modeler: encoding error when "save as..." from python editor

Reported by: mlennert Owned by: grass-dev@…
Priority: normal Milestone: 7.0.7
Component: wxGUI Version: svn-trunk
Keywords: modeler encoding python script Cc:
CPU: Unspecified Platform: Unspecified


Working in a fr_BE.UTF-8 locale, I get the following error when I try to save a python script using the "Save as..." button in the python editor tab:

Traceback (most recent call last):
-unknown-linux-gnu/gui/wxpython/gmodeler/", line
1786, in OnSaveAs

self.SaveAs(force = False)
-unknown-linux-gnu/gui/wxpython/gmodeler/", line
1775, in SaveAs

'ascii' codec can't encode character u'\xe8' in position
124: ordinal not in range(128)

I do not get this error when I use the 'Export to python script' button at the top of the modeler window.

The encoding issue comes from the default model name and description which are translated to French including accents.

This happens in trunk and in release70.


Change History (6)

comment:1 Changed 4 years ago by neteler

Milestone: 7.0.3

Ticket retargeted after milestone closed

comment:2 Changed 4 years ago by neteler

Milestone: 7.0.4

Ticket retargeted after 7.0.3 milestone closed

comment:3 Changed 4 years ago by martinl


comment:4 Changed 4 years ago by neteler


comment:5 Changed 2 years ago by neteler


comment:6 Changed 13 months ago by martinl

Still relevant?

Note: See TracTickets for help on using tickets.