venus
venus copied to clipboard
Fix rendering of Genshi HTML output and encode the output as UTF-8.
Using the xml
rendering method leaves an XML declaration at the top, which doesn't play nice with some browsers, so it's better to use the xhtml
method in such cases.
Also, ensure encode the output as UTF-8. Currently, if output
contains any non-ASCII characters, Python will refuse to write out the string.