Changes by Sebastian Ortiz Vasquez :
Added file: http://bugs.python.org/file29656/XMLGenerator.patch
___
Python tracker
<http://bugs.python.org/issue17606>
___
___
Pytho
Changes by Sebastian Ortiz Vasquez :
Removed file: http://bugs.python.org/file29655/XMLGenerator.patch
___
Python tracker
<http://bugs.python.org/issue17606>
___
___
Pytho
Sebastian Ortiz Vasquez added the comment:
Added new test and patch generated following the python development directions
found on http://docs.python.org/devguide/patch.html
--
type: -> crash
Added file: http://bugs.python.org/file29655/XMLGenerator.pa
New submission from Sebastian Ortiz Vasquez:
The XMLGenerator character method is unable to detect and encode using the
encoding defined in the constructor.
This yields to an UnicodeEncode exception, because always tries to encode using
'ascii' as default in python 2
--
Sebastian Ortiz Vasquez added the comment:
I have been working with this in order to generate an RSS feed using web2py.
I found, XMLGenerator method does not validate if is an unicode or string type,
and it does not encode accord the encoding parameter of the XMLGenerator.
I added changed the