8023: HTML view fails to load

add encoding attribute
This commit is contained in:
Josip 2015-03-15 01:24:27 +01:00
parent 5da10c5a80
commit 53d3c96e58

View File

@ -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', '',