encoding

Szekeres István szekeres at iii.hu
Mon Apr 4 13:58:21 BST 2005


> Always use UTF8?  Suggestions welcome.

encoding = locale.getpreferredencoding()
s=unicode('some string with local accents in it', encoding)

on my system this seems to do the job correctly.





More information about the bazaar mailing list