ConfigParser and Unicode

thehaas at thehaas at
Thu Mar 18 21:22:16 CET 2004

Riccardo Galli <riccardo_cut-me at> wrote:
> by experience, you must first decode your string to encode it

> so
> >>> goodProcRef='Gr\xfc\xdf'.decode('latin-1')
> >>> goodProcRef
> u'Gr\xfc\xdf'

> now you could compare goodProcRef and plist[-1].Reference and get "True"

Why yes, that works!  Thanks Riccardo . . . 

This was my first real experience with Unicode in CPython.  I am
learning that I have much to learn. . . .

Mike Hostetler          
thehaas at 

More information about the Python-list mailing list