From: Dmitry Gutov <dgutov@yandex.ru>
To: "Iñigo Serna" <inigoserna@gmx.com>
Cc: emacs-devel@gnu.org
Subject: Re: url-retrieve "Multibyte text in HTTP request" error when passing UTF-8
Date: Sun, 14 Jun 2020 02:27:20 +0300 [thread overview]
Message-ID: <425e77e6-30e5-674e-009c-d8a29831dc00@yandex.ru> (raw)
In-Reply-To: <87mu56eehq.fsf@inigo.katxi.org>
On 14.06.2020 02:24, Iñigo Serna wrote:
> First of all, thanks for your time.
>
> On 14 June 2020 at 00:12 +02, Dmitry Gutov<dgutov@yandex.ru> wrote:
>
>> What about encoding the body of the request?
> Do you mean execute `encode-coding-string` outside `json-encode`?
> Uhmm… It works!
>
> (url-request-data (encode-coding-string
> (json-encode-alist `[(method . "slim.request") (params . [,playerid ,(split-string query)])])
> 'utf-8))
>
>
> Thanks again for the help,
Cheers!
next prev parent reply other threads:[~2020-06-13 23:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-13 21:08 url-retrieve "Multibyte text in HTTP request" error when passing UTF-8 Iñigo Serna
2020-06-13 22:12 ` Dmitry Gutov
2020-06-13 23:24 ` Iñigo Serna
2020-06-13 23:27 ` Dmitry Gutov [this message]
2020-06-14 0:20 ` Stefan Monnier
2020-06-14 8:33 ` Yuri Khan
2020-06-14 13:49 ` Stefan Monnier
2020-06-14 17:30 ` Yuri Khan
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/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=425e77e6-30e5-674e-009c-d8a29831dc00@yandex.ru \
--to=dgutov@yandex.ru \
--cc=emacs-devel@gnu.org \
--cc=inigoserna@gmx.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).