Problems with encoding

Paulo da Silva psXdaXsilva at esotericaX.ptX
Fri Sep 17 19:41:03 EDT 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