Subject: Re: bug#24117: 25.1; url-http-create-request: Multibyte text in HTTP request

From: Eli Zaretskii <[email-masked]>
Date: Tue, 09 Aug 2016 17:50:32 +0300

> From: Andreas Schwab <[email-masked]>
> Cc: [email-masked],  [email-masked],  [email-masked],  [email-masked]
> Date: Tue, 09 Aug 2016 10:05:31 +0200
> 
> On Di, Aug 09 2016, Eli Zaretskii <[email-masked]> wrote:
> 
> >> From: Andreas Schwab <[email-masked]>
> >> Cc: [email-masked],  [email-masked],  [email-masked],  [email-masked]
> >> Date: Mon, 08 Aug 2016 21:16:21 +0200
> >> 
> >> On Mo, Aug 08 2016, Eli Zaretskii <[email-masked]> wrote:
> >> 
> >> >> From: Andreas Schwab <[email-masked]>
> >> >> Cc: Lars Ingebrigtsen <[email-masked]>,  [email-masked],  [email-masked],  [email-masked]
> >> >> Date: Mon, 08 Aug 2016 19:11:41 +0200
> >> >> 
> >> >> On Mo, Aug 08 2016, Eli Zaretskii <[email-masked]> wrote:
> >> >> 
> >> >> > URLs found in nature are all unibyte strings.
> >> >> 
> >> >> http://góogle.com/fóo isn't unibyte.
> >> >
> >> > Every string outside of Emacs is unibyte.
> >> 
> >> This string is inside Emacs.
> >
> > Then it should be made unibyte before parsing it.
> 
> You can't encode it properly without parsing it first.

You don't say what you meant by "encode properly".  It's just a
string, and there are ways to make a string unibyte without any
parsing.