What happened with python? messed strings?

algaba at droog.sdf-eu.org algaba at droog.sdf-eu.org
Sun Apr 20 14:54:20 EDT 2008


Hi, 
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 ?

python should have stayed at version 1.5, every single 'improvement'
has been a mess. But this is the definitive hell. 

thanks!

-- 
SDF-EU Public Access UNIX System - http://sdf-eu.org



More information about the Python-list mailing list