如何更改python从UCS2到UCS4 [英] How to change python from UCS2 to UCS4
本文介绍了如何更改python从UCS2到UCS4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Python2.7与UCS2构建安装在Ubuntu 12.10。我只是想重新编译python与UCS4或启用UCS4。我应该怎么做?
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?
推荐答案
使用:
./configure --enable-unicode=ucs4
使用UCS4支持。
从 ./ configure --help
输出:
--enable-unicode[=ucs[24]]
Enable Unicode strings (default is ucs2)
这篇关于如何更改python从UCS2到UCS4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文