[I18n-sig] Unicode implementation of python
Taquin Ho
taquin.ho@projectplace.com
Thu, 1 Aug 2002 12:22:43 +0200
Thanks, I know, but the standard version does not seem to have all the =
unicode build.
site.py gives an attribute error when it tries to execute =
sys.setdefaultencoding(...).
See code from site.py:
if encoding !=3D "ascii":
# On Non-Unicode builds this will raise an AttributeError...
sys.setdefaultencoding(encoding) # Needs Python Unicode build !
Once again, anyone know how to activate the unicode support, without =
having to do an=20
x.encode('latin-1') manually for each string?
/ Taquin
M.-A. Lembyrg wrote:
>
> Taquin Ho wrote:
> > Hello,
> > =20
> > I'd like to use the sys.setdefaultencoding(..) method in=20
> python 2.2.x.
> > Comments in the site.py file specify that I need the Unicode=20
> > implementation (Unicode build).
> > Have looked around for the Unicode build, and cannot find=20
> it. Where can=20
> > I get it, or do I have to build it from the source code myself?
>=20
> Python comes with Unicode support since version 1.6 and that's
> what is being refered to in the site.py comment.
>=20