(Simple?) Unicode Question

Thorsten Kampe thorsten at thorstenkampe.de
Sat Aug 29 03:34:43 EDT 2009


* Rami Chowdhury (Thu, 27 Aug 2009 09:44:41 -0700)
> > Further, does anything, except a printing device need to know the
> > encoding of a piece of "text"?

Python needs to know if you are processing the text.
 
> I may be wrong, but I believe that's part of the idea between separation  
> of string and bytes types in Python 3.x. I believe, if you are using  
> Python 3.x, you don't need the character encoding mumbo jumbo at all ;-)

Nothing has changed in that regard. You still need to decode and encode 
text and for that you have to know the encoding.

Thorsten



More information about the Python-list mailing list