Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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