emacs-dokuwiki
emacs-dokuwiki copied to clipboard
Cannot save page when there is a special character on buffer
Overview
There is a problem when saving a page if there is a special character on the buffer.
I found the bug when I tried saving a buffer with the pound sterling (£) symbol.
Here is the error that appears:
error in process sentinel: url-http-create-request: Multibyte text in HTTP request: POST /lib/exe/xmlrpc.php HTTP/1.1
The error message is followed by the xml details that was supposed to be sent.
How to replicate
Create a .dwiki buffer, add a pound sterling (£) symbol to it, then save it. The error should appear.
® was the culprit for me, found (and removed) with non ascii regex search: C-M-r [[:nonascii:]]
restclient.el
might have fixed this same issue with this commit https://github.com/pashky/restclient.el/commit/8292fe68c73561413cebff88008509180768718d by changing method
to encode-coding-string method 'us-ascii)