unicode woes

Mikael Lexén mikael.lexen at spam.no.volvo.com
Thu Sep 26 16:08:50 CEST 2002


You can find information about Python 2.3 in this document

http://www.python.org/dev/doc/devel/whatsnew/section-encodings.html

/Mikael

Ulli Stein wrote:

> Radovan Garabik wrote:
>
> > Ulli Stein <mennosimons at gmx.net> wrote:
> >  : But nevertheless you would have to use everywhere the Python unicode()
> >  : function.
> >
> >  : Or how would you do this (nonsense string):
> >  : str = str + "bla?" + str[:5] + "??
> >
> >  : Would you write then:
> >  : str = str + unicode("bla?") + str[:5] + unicode("??)?
> >
> > I ran into the same problem and find out that python2.3
> > handles this.
> > Just add the line
> > # -*- coding: UTF-8 -*-
> > as the second line of your python script and then
> > you can use all your strings in UTF-8 encoding
> > (or any other, whatever fits you)
> >
>
> From where do you have this information? Is there some official changelog
> for python2.3?
>
> Thanks.




More information about the Python-list mailing list