<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2>I am having problems with acentuation on
python.</FONT></DIV>
<DIV><FONT face=Arial size=2>Before, I used to have win98 with python 2.2.3.
Everything worked perfectly.</FONT></DIV>
<DIV><FONT face=Arial size=2>Now, I´ve updated my OS to Windows 2000 and
have problems.</FONT></DIV>
<DIV><FONT face=Arial size=2>When I try to save on IDLE a script wich has
portuguese acentuation on some strings (like "andré"), it desn´t let me save the
file, with this error.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Exception in Tkinter callback<BR>Traceback (most
recent call last):<BR> File "C:\Python22\lib\lib-tk\Tkinter.py", line
1316, in __call__<BR> return apply(self.func, args)<BR>
File "C:\PYTHON22\Tools\idle\IOBinding.py", line 128, in
save<BR> if self.writefile(self.filename):<BR> File
"C:\PYTHON22\Tools\idle\IOBinding.py", line 151, in
writefile<BR> chars = str(self.text.get("1.0",
"end-1c"))<BR>UnicodeError: ASCII encoding error: ordinal not in
range(128)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Similarly, on SHELL I can not use acentuation
either.</FONT></DIV>
<DIV><FONT face=Arial size=2>[shell]</FONT></DIV>
<DIV><FONT face=Arial size=2>>>> a = 'andré'<BR>UnicodeError: ASCII
encoding error: ordinal not in range(128)<BR>>>> </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>BUT, in a command line python, on the same OS, I
can use acentuation normally, without using unicodes or escape
characters.</FONT></DIV>
<DIV><FONT face=Arial size=2>[command line]</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>>>> a =
'andré'<BR>>>></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Can anybody help me?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Maurício
Inforçati<BR></DIV></FONT></BODY></HTML>