From 940f60e471ef8408f18838e50cfed420971ff933 Mon Sep 17 00:00:00 2001 From: Kharec Date: Mon, 29 Dec 2025 15:25:16 +0100 Subject: [PATCH] test: add UTF-8 path case --- t/05_utils.t | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/05_utils.t b/t/05_utils.t index 3612a5f..fac5f55 100644 --- a/t/05_utils.t +++ b/t/05_utils.t @@ -106,6 +106,11 @@ subtest 'sanitize_url' => sub { 'https://example.com/~user/docs', 'unescapes multiple percent-encoded segments' ], + [ + 'https://fr.wikipedia.org/wiki/Pic_L%C3%A9nine', + 'https://fr.wikipedia.org/wiki/Pic_L%C3%A9nine', + 'preserves UTF-8 percent-encoded path' + ], [ 'https://example.com?q=hello%20world', 'https://example.com?q=hello%20world',