chiark / gitweb /
Fix encoding error on Windows
authorArvid Gerstmann <dev@arvid-g.de>
Sat, 10 Feb 2018 08:06:45 +0000 (09:06 +0100)
committerArvid Gerstmann <dev@arvid-g.de>
Sat, 10 Feb 2018 08:06:45 +0000 (09:06 +0100)
doxygen/dox2html5.py

index 70a2d0cfb40f3b622e72c4cd1766ae477e2bee5f..5871616e93c0293394d99eed81d95309ae616857 100755 (executable)
@@ -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