summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2021-05-01 19:06:40 +0200
committerGitHub <noreply@github.com>2021-05-01 19:06:40 +0200
commitf74bae1aa60a3ab5716da83a69013aa24c6ab12f (patch)
treee529105a288327ec30af905257d84ffcee3b9c21
parent77a1ad3830b684dfa95b2f5a7bb643581397a43d (diff)
ut8-threads (#1179)
-rw-r--r--lib/threads/palette.py2
-rw-r--r--print/templates/index.html1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/threads/palette.py b/lib/threads/palette.py
index 29d2a6dd..7a6bf153 100644
--- a/lib/threads/palette.py
+++ b/lib/threads/palette.py
@@ -38,7 +38,7 @@ class ThreadPalette(Set):
"""
- with open(palette_file) as palette:
+ with open(palette_file, encoding='utf8') as palette:
line = palette.readline().strip()
if line.lower() != "gimp palette":
raise ValueError("Invalid gimp palette header")
diff --git a/print/templates/index.html b/print/templates/index.html
index d4244493..612506c9 100644
--- a/print/templates/index.html
+++ b/print/templates/index.html
@@ -11,6 +11,7 @@
<link rel="stylesheet" href="resources/{{ l }}.css" />
{% endfor %}
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
+ <meta charset="UTF-8">
</head>
<body>
{% include 'ui.html' %}