venus icon indicating copy to clipboard operation
venus copied to clipboard

Fix rendering of Genshi HTML output and encode the output as UTF-8.

Open kgaughan opened this issue 7 years ago • 0 comments

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.

kgaughan avatar Sep 16 '17 16:09 kgaughan