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: Dmitry Gutov
Subject: Re: url-retrieve "Multibyte text in HTTP request" error when passing UTF-8
Date: Sun, 14 Jun 2020 02:27:20 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

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!



reply via email to

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