From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani
> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Tue, 29 Nov 2016 13:05:39 +0200
> Cc: emacs-devel@gnu.org
>
> On 29.11.2016 13:03, Kentaro NAKAZAWA wrote:
>
> > (let* ((content (encode-coding-string
> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 &qu= ot;=E3=81=BB=E3=81=92 <- VALID utf-8 Japanese multibyte text"
> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = 9;utf-8))
> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 (url "http= s://api.github.com/gists")
> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 (url-request-method "POST")<= br class=3D"gmail_msg"> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 (url-request-data
> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(json-encode
> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 `(("description" . &q= uot;test")
> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("public" . fa= lse)
> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("files" . ((&= quot;test.txt" . (("content" . ,content)))))))))
> >=C2=A0 =C2=A0(with-current-buffer (url-retrieve-synchronously url)=
> >=C2=A0 =C2=A0 =C2=A0(buffer-string)))
>
> json-encode returns a multibyte string.
Any idea why?=C2=A0
Is it again that 'concat' = misfeature, when one of the
strings is pure-ASCII, but happens to be multibyte?