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: Stefan Monnier
Subject: Re: url-retrieve "Multibyte text in HTTP request" error when passing UTF-8
Date: Sat, 13 Jun 2020 20:20:33 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>          (url-request-data (encode-coding-string
>                             (json-encode-alist `[(method . "slim.request") 
> (params . [,playerid ,(split-string query)])])
>                             'utf-8))

This might beg for some better documentation about the string returned
by `json-encode`.  After all, AFAIK the JSON format requires utf-8
encoding, so it would make a lot of sense for `json-encode` to do the
utf-8 encoding directly and make sure it always returns a unibyte string.


        Stefan




reply via email to

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