self-hosting repo available

Lele Gaifax lele at nautilus.homeip.net
Mon Apr 11 12:22:38 BST 2005


>>>>> "Andrew" == Andrew Bennetts <andrew at canonical.com> writes:

    Andrew> According to
    Andrew> http://mail.python.org/pipermail/python-dev/2004-August/048496.html,
    Andrew> sys.getdefaultencoding() should always return 'ascii'.

Uh, it's ashtonishing how many times one has to fall into encoding
problem and different practicies! 

    Andrew> AFAIK, the right fix is to always explicitly convert bytes
    Andrew> (i.e. the str type) to unicode, e.g. by
    Andrew> someval.decode(locale.getpreferredencoding()).

I did not know that, but looks a little bit cumbersome, isn't it?

thanx&bye,
lele.
-- 
nickname: Lele Gaifax	| Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas	| comincerò ad aver paura di chi mi copia.
email: lele at seldati.it	|		-- Fortunato Depero, 1929.





More information about the bazaar mailing list