[Tutor] [tutor] string encode
Danny Yoo
dyoo at hkn.eecs.berkeley.edu
Tue Sep 19 15:36:31 CEST 2006
On Tue, 19 Sep 2006, emilia12 at mail.bg wrote:
> so, how register(?) all imported modules to convert all unicodes to
> str() with a coder, for eg. encode('cp1251')
Hi Emilia,
Unfortunately, this isn't so clean: changing the systemwide
default encoding may cause things to break. See:
http://faassen.n--tree.net/blog/view/weblog/2005/08/02/0
for some discussion on the pitfalls.
More information about the Tutor
mailing list