[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: ucs2 or ucs4?

Matt Nordhoff

1/14/2008 2:06:00 PM

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.
--