unicode woes

Ulli Stein mennosimons at gmx.net
Thu Sep 26 09:57:28 EDT 2002


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