[Twisted-Python] print unicode

Pet petshmidt at googlemail.com
Wed May 5 05:45:06 MDT 2010


Hello!

I'm using Twisted 10.0 and as usually sometime print debug infos with
myunicodestr.encode('UTF-8') which are saved to logfile, but since
using twisted 10 I'm getting

UnicodeEncodeError: 'ascii' codec can't encode characters...

type(myunicodestr) returns <type 'unicode'>


What is the problem here?

Thanks!




More information about the Twisted-Python mailing list