Skip to content

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

Open
kgaughan wants to merge 2 commits intorubys:masterfrom
kgaughan:master
Open

Fix rendering of Genshi HTML output and encode the output as UTF-8.#45
kgaughan wants to merge 2 commits intorubys:masterfrom
kgaughan:master

Conversation

@kgaughan
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant