How to change python from UCS2 to UCS4

后端 未结 1 1543
情歌与酒
情歌与酒 2020-12-15 10:00

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条回答
  •  有刺的猬
    2020-12-15 10:35

    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)
    

    0 讨论(0)
提交回复
热议问题