[spe.pycs.net] Encoding
Luiz Fernando B. Ribeiro
luiz at engenhosolucoes.com.br
Tue Jun 15 17:00:47 CEST 2004
Greetings to all,
I'm new to SPE and I'm having problem saving my files.
My files use international characters in comments and strings, I'm from
Brazil, and when saving SPE
throws an error in Child.py because of encoding.
This the message in shell:
Traceback (most recent call last):
File "C:\Python23\Lib\site-packages\_spe\Menu.py", line 429, in menu_save
self.parentPanel.childActive.save()
File "C:\Python23\lib\site-packages\_spe\Child.py", line 184, in save
content = str(source.replace('\r\n','\n'))
UnicodeEncodeError: 'ascii' codec can't encode characters in position
90-91: ordinal not in
range(128)
My file has a declaration on top:
# -*- coding: iso8859-1 -*-
How can I inform SPE about the encoding my file is using?
Thanks in advance,
--
Luiz Fernando B. Ribeiro
Engenho Soluções para a Internet
+55 11 4485-0136
More information about the Spe-user
mailing list