[GRASS-dev] wxgui encoding issues

Moritz Lennert mlennert at club.worldonline.be
Wed Nov 21 05:23:23 PST 2012


On Wed, November 21, 2012 14:20, Moritz Lennert wrote:
> On Wed, November 21, 2012 14:12, Moritz Lennert wrote:
>> On Wed, November 21, 2012 10:25, Martin Landa wrote:
>>> Hi,
>>>
>>> 2012/11/21 Moritz Lennert <mlennert at club.worldonline.be>:
>>>
>>> [...]
>>>
>>>>> Changed in r53917.
>>>>
>>>>
>>>> Thanks ! Can this also be applied to the 6.4 release branch ?
>>>
>>> done in r53946. Martin
>>
>> Thanks ! Now I hit the next problem in that same line:
>>
>> Trying to save the model (with default name and description in French
>> containing accents) as a python script, I get:
>>
>> Traceback (most recent call last):
>>   File "/usr/lib/grass64/etc/wxpython/gmodeler/frame.py",
>> line 1593, in OnSaveAs
>>
>> self.SaveAs(force = False)
>>   File "/usr/lib/grass64/etc/wxpython/gmodeler/frame.py",
>> line 1582, in SaveAs
>>
>> fd.write(self.body.GetText())
>> UnicodeEncodeError
>> :
>> 'ascii' codec can't encode character u'\xe8' in position
>> 126: ordinal not in range(128)
>
> And another one, this time due to the fact that the variable type
> 'character chain' is translated into 'chaîne de caractères':

Sorry, the original obviously is 'string', not 'character chain'. At least
the description of the variable will also possible contain special
characters. We can probably impose the use of variable names without such
characters.

Moritz



More information about the grass-dev mailing list