diff --git a/internal/web/handlers/gist/download.go b/internal/web/handlers/gist/download.go index 59f765f..946b04b 100644 --- a/internal/web/handlers/gist/download.go +++ b/internal/web/handlers/gist/download.go @@ -30,7 +30,7 @@ func RawFile(ctx *context.Context) error { if file.MimeType.CanBeEmbedded() { ctx.Response().Header().Set("Content-Type", file.MimeType.ContentType) } else if file.MimeType.IsText() { - ctx.Response().Header().Set("Content-Type", "text/plain") + ctx.Response().Header().Set("Content-Type", "text/plain; charset=utf-8") } else { ctx.Response().Header().Set("Content-Type", "application/octet-stream") }