On Tuesday 15 October 2002 20:57, david wrote:
> > Then I get the next problem. Here is my code:
> >
> > string.split(unicode(self.widget.text.eingabe.text()),'\n')
> > tmp = unicode(self.widget.text.eingabe.text())+'\n'
> >
> > try:
> > exec tmp in user_name_space
> > except:
> > txt = str(sys.exc_info()[1])
> > return
> >
> > Here I get the error message
> >
> > ASCII encoding error: ordinal not in range(128)
> I'm using this :
>
> blah = textedit.text().latin1()
>
> It works fine.
>
> David Florkin
--
It doe not work for me; I get the same error message as above. (This seems to
be no Python problem, as
exec('a="�"')
works.
Janos Blazi
_______________________________________________
PyKDE mailing list [EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde