From: Arvid Gerstmann Date: Sat, 10 Feb 2018 08:06:45 +0000 (+0100) Subject: Fix encoding error on Windows X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=1a1af0fb657ce227f0fa2a957732cee05e295991;p=blog.git Fix encoding error on Windows --- diff --git a/doxygen/dox2html5.py b/doxygen/dox2html5.py index 70a2d0cf..5871616e 100755 --- a/doxygen/dox2html5.py +++ b/doxygen/dox2html5.py @@ -2743,8 +2743,8 @@ def run(doxyfile, templates=default_templates, wildcard=default_wildcard, index_ **state.doxyfile) output = os.path.join(html_output, parsed.compound.url) - with open(output, 'w') as f: - f.write(rendered) + with open(output, 'wb') as f: + f.write(rendered.encode('utf-8')) # Empty index page in case no mainpage documentation was provided so # there's at least some entrypoint. Doxygen version is not set in this