ConfigParser and Unicode
thehaas at binary.net
thehaas at binary.net
Thu Mar 18 15:22:16 EST 2004
Riccardo Galli <riccardo_cut-me at cut.me.sideralis.net> wrote:
[snip]
> 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 binary.net
http://www.binary.net/thehaas
More information about the Python-list
mailing list