From 53d3c96e58ca8d80e6f4973d61ba75a6183e812b Mon Sep 17 00:00:00 2001 From: Josip Date: Sun, 15 Mar 2015 01:24:27 +0100 Subject: [PATCH] 8023: HTML view fails to load add encoding attribute --- gramps/plugins/view/htmlrenderer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/view/htmlrenderer.py b/gramps/plugins/view/htmlrenderer.py index e239a803f..829ed695d 100644 --- a/gramps/plugins/view/htmlrenderer.py +++ b/gramps/plugins/view/htmlrenderer.py @@ -551,7 +551,7 @@ class HtmlView(NavigationView): # Now we have two views : Web and Geography, we need to create the # startpage only once. if not os.path.exists(filename): - ufd = open(filename, "w+") + ufd = open(filename, "w+", encoding="utf-8") ufd.write(data) ufd.close() return urlunsplit(('file', '',