Problems with encoding

Paulo da Silva psXdaXsilva at esotericaX.ptX
Sat Sep 18 01:41:03 CEST 2004


Hi.

I am using unicode encode method to write some
accented chars to files (%s). Do I need to use
the method "encode" always? Isn't there a general
way to declare the encoding for the whole program?
I have tried sys.setdefaultencoding but there was
no such method !

Thanks for any help.



More information about the Python-list mailing list