rubys / venus

Planet Venus is an awesome ‘river of news’ feed reader. It downloads news feeds published by web sites and aggregates their content together into a single combined feed, latest news first.
http://intertwingly.net/code/venus/docs/index.html
Other
274 stars 99 forks source link

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

Open kgaughan opened 7 years ago

kgaughan commented 7 years ago

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.