ucs2 or ucs4?

Matt Nordhoff mnordhoff at mattnordhoff.com
Mon Jan 14 09:06:04 EST 2008


Neal Becker wrote:
> How do I tell if my python-2.5 is build with ucs2 or ucs4?

You can also check sys.maxunicode.

>>> import sys
>>> sys.maxunicode

If it's 1114111, you're UCS-4. If it's something much lower, you're UCS-2.
-- 



More information about the Python-list mailing list