unicode and socket

Irmen de Jong irmen.NOSPAM at xs4all.nl
Fri Feb 18 16:42:25 EST 2005


aurora wrote:
> You could not. Unicode is an abstract data type. It must be encoded 
> into  octets in order to send via socket. And the other end must decode 
> the  octets to retrieve the unicode string. Needless to say the encoding 
> scheme  must be consistent and understood by both ends.

So use pickle.

--Irmen



More information about the Python-list mailing list