From 2eaa5a8842a5db35e40bd22603ef7adee8e6887a Mon Sep 17 00:00:00 2001 From: Ruben Anders Date: Thu, 24 Jan 2019 15:48:44 +0100 Subject: [PATCH] Fix response encoding --- api/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/server.go b/api/server.go index e87b92a..7e7e981 100644 --- a/api/server.go +++ b/api/server.go @@ -187,7 +187,7 @@ func parseFromTo(from, to string, limit float64) (time.Time, time.Time, error) { } func writeTextResponse(c echo.Context, cLog *chatLog) error { - c.Response().Header().Set(echo.HeaderContentType, echo.MIMETextPlain) + c.Response().Header().Set(echo.HeaderContentType, echo.MIMETextPlainCharsetUTF8) c.Response().WriteHeader(http.StatusOK) for _, cMessage := range cLog.Messages {