Wiki‎ > ‎

Check python unicode version ucs2 vs ucs4

posted Sep 7, 2016, 10:35 AM by Dong Xu   [ updated Feb 23, 2017, 10:04 AM ]

This is for python 2.7

When built with --enable-unicode=ucs4:

>>> import sys
>>> print sys.maxunicode
1114111

When built with --enable-unicode=ucs2:

>>> import sys
>>> print sys.maxunicode
65535

py27_env is ucs4
Comments