[GRASS-user] using "not so common characters" in Python Script

António Rocha antonio.rocha at deimos.com.pt
Wed May 18 13:34:35 EDT 2011


Greetings  

I would like to include some sentences with characters like á ã àó in my 
grass.message strings. It seems it's not possible Because I get this

    grass.fatal(_('á'))
I get:
  File "C:/local/scripts/x.teste", line 41
SyntaxError: Non-ASCII character '\xe1' in file
C:/local/scripts/x.teste on line 41, but no encoding
declared; see http://www.python.org/peps/pep-0263.html for
details

Is it possible?
Thanks
Antonio Rocha




__________ Information from ESET NOD32 Antivirus, version of virus signature database 6132 (20110518) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




More information about the grass-user mailing list