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

From: Andreas Schwab <[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.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."