aboutsummaryrefslogtreecommitdiff
path: root/cmd/label-tool
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/label-tool')
-rw-r--r--cmd/label-tool/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/label-tool/main.go b/cmd/label-tool/main.go
index 1e5ab4a..d2ac4f9 100644
--- a/cmd/label-tool/main.go
+++ b/cmd/label-tool/main.go
@@ -137,7 +137,7 @@ func handle(w http.ResponseWriter, r *http.Request) {
if fontIndex, err = strconv.Atoi(r.FormValue("font")); err == nil {
font = fonts[fontIndex]
} else {
- w.Header().Set("Content-Type", "text/html")
+ w.Header().Set("Content-Type", "text/html; charset=utf-8")
if err := tmplFont.Execute(w, fonts); err != nil {
http.Error(w, err.Error(), 500)
}
@@ -217,7 +217,7 @@ func handle(w http.ResponseWriter, r *http.Request) {
}
if _, ok := r.Form["render"]; !ok {
- w.Header().Set("Content-Type", "text/html")
+ w.Header().Set("Content-Type", "text/html; charset=utf-8")
if err := tmplForm.Execute(w, &params); err != nil {
http.Error(w, err.Error(), 500)
}