[Tutor] [tutor] string encode

emilia12 at mail.bg emilia12 at mail.bg
Tue Sep 19 13:20:31 CEST 2006


hi list

is there a way to solve the error in case of :
<code>
# ...
return str(val) #where val is unicode (eg val = u'u')
</code>

so, how register(?) all imported modules to convert all
unicodes to str() with a coder, for eg. encode('cp1251')

thanks in advance

-e-

-----------------------------

Део и Фани Коларова във филма "Бунтът на L
От 22 септември в кината.
http://www.buntatnal.com/



More information about the Tutor mailing list