如何更改python从UCS2到UCS4(How to change python from UCS2 to UCS4)

1074 IT屋

我有一个Python2.7与UCS2构建安装在Ubuntu 12.10。我只是想重新编译python与UCS4或启用UCS4。我应该怎么做?


解决方案

使用:



  ./ configure --enable-unicode = ucs4 


使用UCS4支持。



从 ./ configure --help 输出:



  --enable-unicode [= ucs [24]] 
启用Unicode字符串(默认为ucs2)

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?

解决方案

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)

本文地址:IT屋 » 如何更改python从UCS2到UCS4

相关文章: