This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dabeaz
Recipients dabeaz
Date 2010-12-27.20:09:50
SpamBayes Score 2.9212763e-06
Marked as misclassified No
Message-id <1293480596.05.0.335729473125.issue10783@psf.upfronthosting.co.za>
In-reply-to
Content
Is the struct.pack() function supposed to automatically encode Unicode strings into binary?  For example:

>>> struct.pack("10s","Jalape\u00f1o")
b'Jalape\xc3\xb1o\x00'
>>>

This is Python 3.2b1.
History
Date User Action Args
2010-12-27 20:09:56dabeazsetrecipients: + dabeaz
2010-12-27 20:09:56dabeazsetmessageid: <1293480596.05.0.335729473125.issue10783@psf.upfronthosting.co.za>
2010-12-27 20:09:50dabeazlinkissue10783 messages
2010-12-27 20:09:50dabeazcreate