How to change python from UCS2 to UCS4

大城市里の小女人 提交于 2019-12-18 02:42:55

问题


I have a Python2.7 with UCS2 build installed on Ubuntu 12.10. I just want to recompile python with UCS4 or enable UCS4. How should I do this?


回答1:


Use:

./configure --enable-unicode=ucs4

to configure the source to build with UCS4 support.

From the ./configure --help output:

  --enable-unicode[=ucs[24]]
                          Enable Unicode strings (default is ucs2)


来源:https://stackoverflow.com/questions/19575727/how-to-change-python-from-ucs2-to-ucs4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!