unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: mbcladwell@stihie.net
To: tomas@tuxteam.de, guile-user@gnu.org
Subject: Re: http-client port encoding failed
Date: Tue, 08 Sep 2020 09:26:57 -0500	[thread overview]
Message-ID: <20200908092657.Horde.mNitKfBrhOFNSQ9-vJQwhod@www.stihie.net> (raw)


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	other threads:[~2020-09-08 14:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-08 14:26 mbcladwell [this message]
2020-09-08 14:33 ` http-client port encoding failed tomas
  -- strict thread matches above, loose matches on Subject: below --
2020-09-04 19:35 mbcladwell
2020-09-05  8:55 ` tomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200908092657.Horde.mNitKfBrhOFNSQ9-vJQwhod@www.stihie.net \
    --to=mbcladwell@stihie.net \
    --cc=guile-user@gnu.org \
    --cc=tomas@tuxteam.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).