[Tutor] re.sub
Nicole.Seitz@urz.uni-hd.de
Nicole.Seitz@urz.uni-hd.de
Mon, 19 Aug 2002 16:25:25 +0200
Hi there!
Today I got the following exception after inserting re.sub("ü","=FC=
",text)
somewhere in my program.
Python 2.2.1 (#34, Apr 9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help
>>> Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Programme\lib\lib-tk\Tkinter.py", line 1292, in __call__
return apply(self.func, args)
File "C:\PROGRA~1\Tools\idle\IOBinding.py", line 128, in save
if self.writefile(self.filename):
File "C:\PROGRA~1\Tools\idle\IOBinding.py", line 154, in writefile
f.write(chars)
UnicodeError: ASCII encoding error: ordinal not in range(128)
Can anybody tell my why there's a problem with the German umlaut?
Thanx in advance
Nicole