[Tutor] how to struct.pack a unicode string?
Dave Angel
d at davea.name
Sun Dec 2 21:59:10 CET 2012
On 12/02/2012 08:34 AM, Albert-Jan Roskam wrote:
>
>
>
> <snip>
>
>
> Hi Eryksun,
>
> Observation #1: Yes, makes perfect sense. I should have thought about that. Observation #2:
> As I emailed earlier today to Peter Otten, I thought unicode_internal means UCS-2 or UCS-4,
> depending on the size of sys.maxunicode? How is this related to UTF-16 and UTF-32?
How is maxunicode relevant? Are you stuck on 3.2 or something? Python
3.3 uses 1 byte, 2 bytes or 4 for internal storage of a string depending
only upon the needs of that particular string.
--
DaveA
More information about the Tutor
mailing list