Felix Lechner <felix.lechner@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at submit) by debbugs.gnu.org; 13 May 2024 04:38:53 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 13 00:38:53 2024 Received: from localhost ([127.0.0.1]:58289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1s6NSf-00072k-2M for submit <at> debbugs.gnu.org; Mon, 13 May 2024 00:38:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:57690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <felix.lechner@HIDDEN>) id 1s6NSc-00072c-L2 for submit <at> debbugs.gnu.org; Mon, 13 May 2024 00:38:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <felix.lechner@HIDDEN>) id 1s6NSP-0006Cj-No for bug-mumi@HIDDEN; Mon, 13 May 2024 00:38:41 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from <felix.lechner@HIDDEN>) id 1s6NSO-0007vO-0t for bug-mumi@HIDDEN; Mon, 13 May 2024 00:38:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=aK59cDlZY1ka1O1 6I7xzpA9hVvq5usa8TqHkyC7qaYw=; h=date:subject:cc:to:from; d=lease-up.com; b=XIrHX+k1EdkB6z2tkpOLBZR6jFhxsmP/CjgxBcdvnIssKsZUgTg2 kN5YWNbzbPZG/49he//ORhMvi7rLgNrtRAM6VulWm5THKdB3sI7u9+pIIEhVZsq6mIIbG9 q2Pc/bQF6BGJ8IvODZAVE+UUeunhNdU1Uei/KwHtIwB3WGBUI= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id c1908a7a (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Mon, 13 May 2024 04:38:34 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id d39734a4; Mon, 13 May 2024 04:38:34 +0000 (UTC) From: Felix Lechner <felix.lechner@HIDDEN> To: bug-mumi@HIDDEN Subject: [PATCH] Send HTTP headers with charset utf-8. Date: Sun, 12 May 2024 21:38:32 -0700 Message-ID: <20240513043832.6959-1-felix.lechner@HIDDEN> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@HIDDEN; helo=sail-ipv4.us-core.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit Cc: Felix Lechner <felix.lechner@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.1 (--) In most cases, providing HTTP headers with the charset is superior to (and has precedence over) the declaration in an HTML <meta> tag: https://stackoverflow.com/a/26032993 A preview of this code is live at patchwise.org. --- mumi/web/render.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mumi/web/render.scm b/mumi/web/render.scm index ad3ae0e..e867178 100644 --- a/mumi/web/render.scm +++ b/mumi/web/render.scm @@ -103,12 +103,12 @@ (define* (render-html sxml #:key (extra-headers '())) (values (append extra-headers - '((content-type . (text/html)))) + '((content-type . (text/html (charset . "utf-8"))))) (lambda (port) (sxml->html sxml port)))) (define (render-json json) - (values '((content-type . (application/json))) + (values '((content-type . (application/json (charset . "utf-8")))) (lambda (port) (scm->json json port)))) base-commit: 99416ed5c7d950eaf54d52023a2efd975bccac92 -- 2.41.0
Felix Lechner <felix.lechner@HIDDEN>
:bug-mumi@HIDDEN
.
Full text available.bug-mumi@HIDDEN
:bug#70906
; Package mumi
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.