ucs2 and ucs4 python

Miki Tebeka miki.tebeka at gmail.com
Tue May 15 12:42:51 EDT 2012


> Can someone point me towards a resource or two which will tell me how
> to do this - im not very good with whole linux/servers stuff. Im using
> ubuntu linux - if that makes any difference.
Did not test, but this is the direction I would take:
* Download Python sources
* Open Terminal
* Run the following commands in the Terminal window
  - sudo apt-get build-dep python
  - tar -xjf Python-2.7.3.tar.bz2
  - cd Python-2.7.3
  - ./configure --prefix=/opt --enable-unicode=ucs2 && make
  - sudo make install
* Now you should have /opt/bin/python with ucs2

HTH
--
Miki Tebeka <miki.tebeka at gmail.com>
http://pythonwise.blogspot.com




More information about the Python-list mailing list