unicode and socket

aurora aurora00 at gmail.com
Fri Feb 18 14:15:27 EST 2005


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.


On 18 Feb 2005 11:03:46 -0800, <zyqnews at 163.net> wrote:

> hello all,
>  I am new in Python. And I have got a problem about unicode.
> I have got a unicode string, when I was going to send it out throuth a
> socket by send(), I got an exception. How can I send the unicode string
> to the remote end of the socket as it is without any conversion of
> encode, so the remote end of the socket will receive unicode string?
>
> Thanks
>




More information about the Python-list mailing list