[Yum-devel] Unicode + default encodings

seth vidal skvidal at phy.duke.edu
Wed Aug 17 05:23:40 UTC 2005

On Tue, 2005-08-16 at 12:36 -0400, Jeremy Redburn wrote:
> Hello there,
> I'm trying to build what essentially amounts to an XML-RPC interface
> to Yum and am struggling with various string encodings. Specifically,
> some of the description fields in my packages contain special
> characters (copyright, trademark, newlines, etc). I've tried a number
> of ways of retrieving the description and outputting it, but I have
> yet to be able to duplicate the output of a simple 'yum info'.
> Specifically, the installed package 'cups' in my repository looks like
> this:
>  The Common UNIX Printing System provides a portable printing layer for
> UNIX(R) operating systems. It has been developed by Easy Software Products
> to promote a standard printing solution for all UNIX vendors and users.
> CUPS provides the System V and Berkeley command-line interfaces.
> My code to retrieve the description is similar to that in output.py:
> print pkg.returnSimple('description')

2 items.
1. could you send a link to this code?
2. have you looked at the munging of those characters that createrepo
does to make the xml-happy?


More information about the Yum-devel mailing list