GNU bug report logs -
#24239
25.1; Potential regression: Multibyte text in HTTP request
Previous Next
Reported by: Damien Cassou <damien <at> cassou.me>
Date: Mon, 15 Aug 2016 19:27:01 UTC
Severity: normal
Tags: fixed
Fixed in version 25.1
Done: Noam Postavsky <npostavs <at> users.sourceforge.net>
Bug is archived. No further changes may be made.
Full log
Message #38 received at 24239 <at> debbugs.gnu.org (full text, mbox):
Dmitry Gutov <dgutov <at> yandex.ru> writes:
> On 08/16/2016 09:23 AM, Damien Cassou wrote:
>
>> - what will happen to my multibyte characters (such as ⇒) that I'm using
>> for months and that worked well with Emacs 24?
>
> Unibyte != ASCII. Use encode-coding-string.
sorry, I don't understand how to do that. org-caldav code is quite
simple. The two important functions are:
https://github.com/dengste/org-caldav/blob/master/org-caldav.el#L1246
https://github.com/dengste/org-caldav/blob/master/org-caldav.el#L315
(defun org-caldav-put-event (buffer)
"Add event in BUFFER to calendar.
The filename will be derived from the UID."
[...]
(org-caldav-save-resource
(concat (org-caldav-events-url) uid org-caldav-uuid-extension)
(encode-coding-string (buffer-string) 'utf-8))))))
(defun org-caldav-save-resource (url obj)
"Save string OBJ as URL using WebDAV."
(let* ((url-request-extra-headers
'(("Content-type" . "text/calendar; charset=UTF-8")))
(url-request-method "PUT")
(url-request-data obj)
(buffer (url-retrieve-synchronously url))
result)
[...]))
As you can see, encode-coding-string is already used to encode to utf-8.
Do I have to switch from utf-8 to iso-8859-*?
Sorry, I'm lost.
--
Damien Cassou
http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
This bug report was last modified 7 years and 107 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.