8023: HTML view fails to load
add encoding attribute
This commit is contained in:
parent
5da10c5a80
commit
53d3c96e58
@ -551,7 +551,7 @@ class HtmlView(NavigationView):
|
|||||||
# Now we have two views : Web and Geography, we need to create the
|
# Now we have two views : Web and Geography, we need to create the
|
||||||
# startpage only once.
|
# startpage only once.
|
||||||
if not os.path.exists(filename):
|
if not os.path.exists(filename):
|
||||||
ufd = open(filename, "w+")
|
ufd = open(filename, "w+", encoding="utf-8")
|
||||||
ufd.write(data)
|
ufd.write(data)
|
||||||
ufd.close()
|
ufd.close()
|
||||||
return urlunsplit(('file', '',
|
return urlunsplit(('file', '',
|
||||||
|
Loading…
Reference in New Issue
Block a user