From: Yuri Khan <yuri.v.khan@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "Dmitry Gutov" <dgutov@yandex.ru>,
"Iñigo Serna" <inigoserna@gmx.com>,
"Emacs developers" <emacs-devel@gnu.org>
Subject: Re: url-retrieve "Multibyte text in HTTP request" error when passing UTF-8
Date: Mon, 15 Jun 2020 00:30:33 +0700 [thread overview]
Message-ID: <CAP_d_8VEAWQd78qMBd---H+Uw=hzj-o__NcfjJiS=8xQjvq79g@mail.gmail.com> (raw)
In-Reply-To: <jwvpna1yd0o.fsf-monnier+emacs@gnu.org>
On Sun, 14 Jun 2020 at 20:49, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> >> 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.
> >
> > An application might not want to send the encoded string over the
> > network right away. It might want to insert it into a buffer.
>
> I didn't suggest to change the behavior, only to document it because
> both outputs can make sense, so common sense is not sufficient to know
> what should be returned.
Oh, I see. Yes please. More libraries should take care to document
their behavior wrt string encodings.
prev parent reply other threads:[~2020-06-14 17:30 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
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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAP_d_8VEAWQd78qMBd---H+Uw=hzj-o__NcfjJiS=8xQjvq79g@mail.gmail.com' \
--to=yuri.v.khan@gmail.com \
--cc=dgutov@yandex.ru \
--cc=emacs-devel@gnu.org \
--cc=inigoserna@gmx.com \
--cc=monnier@iro.umontreal.ca \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.