Christian Heimes added the comment:

Yes, it's possible to send UTF-8 data:

>>> data = u"testdata umlaut öäü".encode("utf-8")
>>> data
'testdata umlaut \xc3\xb6\xc3\xa4\xc3\xbc'
>>> type(data)
<type 'str'>
>>> data == str(data)
True
>>> data is str(data)
True

You have to encode your unicode string to a byte string.
u''.encode(encoding) always returns a string. str() on a string doesn't
alter a string. As you can clearly see it's a NOOP (no operation).

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1410>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to