如何将python从UCS2更改为UCS4 [英] How to change python from UCS2 to UCS4

查看:67
本文介绍了如何将python从UCS2更改为UCS4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Ubuntu 12.10 上安装了带有 UCS2 版本的 Python2.7.我只想用UCS4重新编译python或启用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 支持进行构建.

to configure the source to build with UCS4 support.

./configure --help 输出:

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

这篇关于如何将python从UCS2更改为UCS4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆