Red Hat Bugzilla – Bug 328831
RHN XML-RPC interface is specifying wrong encoding for errata
Last modified: 2015-05-29 16:11:21 EDT
Description of problem:
The current RHN XML-RPC interface is currently returning errata and specifying that their encoding is
ISO-8859-1. The problem is that some errata are actually encoded using utf-8.
Version-Release number of selected component (if applicable):
Version: 5.0.3 Java; System Version: 5.0.3
Steps to Reproduce:
1. Download attached python program
2. Modify to include a valid RHN username/password
3. Run the program. Notice the following in the output
body: '<?xml version="1.0" encoding="ISO-8859-1"?>
by Dirk\r\nM\xc3\xbcller that
The hex sequence \xc3\xbc is the utf-8 encoding of 'ü' (that's 'u' with an umlaut diacritic). However,
because the XML response specifies that the data is ISO-8859-1, it is decoded incorrectly by the client.
XML-RPC reply specifies incorrect (ISO-8859-1) encoding.
XML-RPC reply specifies correct (utf-8) encoding.
Created attachment 224941 [details]
Python program demonstrating incorrect encoding for RHSA-2007:0494