> description += ... pkg.returnSimple('description').encode('utf-8')
>
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position
> Any suggestions on how to proceed?
local variable 'description' probably contains an unicode string. You try
to append an encoded utf8 string. To concatenate, Python tries to convert
utf8 part to unicode first, but uses the default ascii codec that raises
exception on anything over \x7f.
a) remove the ".encode('utf-8')", then both args to += will be unicode.
b) make sure 'description' is utf8, too (do not assign or append unicode
strings to it).
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel