Not sure I am doing exactly what you suggest but the following (based on your suggestion) seems to work:

(define auth "Marjanović+Ž")
(http-request (string-append "https://......&term="; auth "[auth]&retmax=20")) ===> error!! Throw to key `encoding-error' with args `("put-char" "conversion to port encoding failed" 84 #<input-output: string 7f9a247d75b0> #\ć)'.

(define authencode (uri-encode "Marjanović+Ž")) ===> "Marjanovi%C4%87%2B%C5%BD" (http-request (string-append "https://....&term="; authencode "[auth]&retmax=20")) ===>success!!

Thanks
Mortimer




Reply via email to