From eaefded0a959b59f441d50cfb30fc08497078fe1 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Thu, 10 Aug 2023 13:18:22 +0200 Subject: [PATCH] python3: Encode ashd-wsgi3 output headers with utf-8 instead of latin-1. --- python3/ashd-wsgi3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python3/ashd-wsgi3 b/python3/ashd-wsgi3 index 2ca259a..c10bfc9 100755 --- a/python3/ashd-wsgi3 +++ b/python3/ashd-wsgi3 @@ -151,7 +151,7 @@ def recode(thing): if isinstance(thing, collections.abc.ByteString): return thing else: - return str(thing).encode("latin-1") + return str(thing).encode("utf-8") class request(ashd.serve.wsgirequest): def __init__(self, *, bkreq, **kw): -- 2.11.0