emacs-dokuwiki icon indicating copy to clipboard operation
emacs-dokuwiki copied to clipboard

Cannot save page when there is a special character on buffer

Open accidentalrebel opened this issue 8 years ago • 1 comments

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.

accidentalrebel avatar Jan 30 '17 23:01 accidentalrebel

® 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)

WillForan avatar Jun 29 '18 13:06 WillForan