[Python-3000] struni and the Apple four-character-codes
Greg Ewing
greg.ewing at canterbury.ac.nz
Sat Jul 28 03:19:44 CEST 2007
Guido van Rossum wrote:
> We could use Unicode strings where in the past we used 8-bit strings,
> but that would be somewhat nasty when there's ever one of these codes
> that's not pure ASCII
Since this is a Mac-specific thing (and Classic-originated at
that), I think you can be pretty sure that any non-ASCII value
is to be interpreted according to the Macintosh character set,
if it's meant to be a character at all.
So I would suggest using the Macintosh encoding when converting
these to and from unicode.
--
Greg
More information about the Python-3000
mailing list