From cc650645501b8feee517f3226d3b915f73e215ca Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Thu, 22 Sep 2022 12:43:11 +0200 Subject: [PATCH] Use default Drakma encoding in url-encode. This fixes the load of URLs like bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq/I/m/Van_Gogh_-_Bildnis_der_Mutter_des_K%C3%BCnstlers.jpeg --- main.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lisp b/main.lisp index 2ea88c7..9f8e113 100644 --- a/main.lisp +++ b/main.lisp @@ -1101,6 +1101,6 @@ will be passed directly to the files-write function." ignored (cl-ppcre:regex-replace-all "%2520" (drakma:url-encode - (cl-ppcre:regex-replace-all " " string "%20") - :utf-8) + (cl-ppcre:regex-replace-all " " string "%20") + drakma:*drakma-default-external-format*) "%20"))