From ed0b6c835d46ba06b70c706fd37e00da8727984a Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 19 Aug 2019 04:36:45 -0400 Subject: [PATCH] it is 2019 and there are browsers still defaulting to latin1 --- honk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/honk.go b/honk.go index 3d51ab1..b75527b 100644 --- a/honk.go +++ b/honk.go @@ -194,7 +194,7 @@ func homepage(w http.ResponseWriter, r *http.Request) { } else { w.Header().Set("Cache-Control", "max-age=0") } - w.Header().Set("Content-Type", "text/html") + w.Header().Set("Content-Type", "text/html; charset=utf-8") err := readviews.Execute(w, tname, templinfo) if err != nil {