Unicode universe (was Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 30))

Aahz aahz at pythoncraft.com
Tue Jan 4 16:18:15 CET 2005


In article <1104849206.111461.70500 at c13g2000cwb.googlegroups.com>,
 <michele.simionato at gmail.com> wrote:
>
>BTW what's the difference between .encode and .decode ?
>(yes, I have been living in happy ASCII-land until now ... ;)

Here's the stark simple recipe: when you use Unicode, you *MUST* switch
to a Unicode-centric view of the universe.  Therefore you encode *FROM*
Unicode and you decode *TO* Unicode.  Period.  It's similar to the way
floating point contaminates ints.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"19. A language that doesn't affect the way you think about programming,
is not worth knowing."  --Alan Perlis



More information about the Python-list mailing list