What happened with python? messed strings?

gagsl-py2 at yahoo.com.ar gagsl-py2 at yahoo.com.ar
Thu Apr 24 02:05:01 EDT 2008


(top posting fixed; please keep discussion on this
list)

--- algaba at droog.sdf-eu.org escribió:
> In article
>
<mailman.747.1208720919.17997.python-list at python.org>
> you wrote:
> > En Sun, 20 Apr 2008 15:54:20 -0300,
> <algaba at droog.sdf-eu.org> escribi?:
> 
> > > I used extensively python and now I find this
> mess with strings,
> > > I can't even reproduce tutorial examples:
> > >>>> "apfel".encode('utf-8')  (it was with umlaut)
> > >   File "<stdin>", line 0
> > >    ^
> > > SyntaxError: 'ascii' codec can't decode byte
> 0xc4 in position 1:
> > > ordinal not in range(128)
> > >>>>
> > > Is there any good guide to this mess of codecs
> and hell ?

[two links to unicode introductory articles]

> ok,
> and how do you explain that even the tutorial
> example is broken ???

Which tutorial example?

-- 
Gabriel Genellina


      Los referentes más importantes en compra/ venta de autos se juntaron:
Demotores y Yahoo!
Ahora comprar o vender tu auto es más fácil. Vistá ar.autos.yahoo.com/



More information about the Python-list mailing list