Open egh opened 4 years ago
I have the same issue as well. 😕
To answer this question, you will need to encode data with utf8 encoding before send it over with url-retrieve
.
(encode-coding-string (json-encode '(("key" . "値1") ("key2" . "値2"))) 'utf8 'nocopy)
Versions: Ubuntu 18.04 GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2019-09-16
Steps to reproduce:
request.el
:wget https://raw.githubusercontent.com/tkf/emacs-request/master/request.el
emacs -Q
M-x load-library json
request.el
and eval buffer(setq request-backend 'url-retrieve)
Expected result: Message
I sent: ((key . "値1") (key2 . "値2"))
Actual result: error: