emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: url-retrieve "Multibyte text in HTTP request" error when passing UTF


From: Iñigo Serna
Subject: Re: url-retrieve "Multibyte text in HTTP request" error when passing UTF-8
Date: Sun, 14 Jun 2020 01:24:17 +0200
User-agent: mu4e 1.4.6; emacs 28.0.50

Hi Dmitry,

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,
Iñigo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]