From 88c42b30434d305926ffebedaf9723d2d4b79172 Mon Sep 17 00:00:00 2001 From: HyunggyuJang Date: Tue, 11 Jul 2023 17:06:05 +0900 Subject: [PATCH] Encode data as utf-8 otherwise it will complain, see https://github.com/magit/ghub/commit/1c855310909340791e5ed0410ffa6b64dbec1fed --- src/interface/emacs/khoj.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface/emacs/khoj.el b/src/interface/emacs/khoj.el index 74d63189..f9d260e1 100644 --- a/src/interface/emacs/khoj.el +++ b/src/interface/emacs/khoj.el @@ -609,7 +609,7 @@ CONFIG is json obtained from Khoj config API." ;; POST provided config to khoj server (let ((url-request-method "POST") (url-request-extra-headers '(("Content-Type" . "application/json"))) - (url-request-data (json-encode-alist config)) + (url-request-data (encode-coding-string (json-encode-alist config) 'utf-8)) (config-url (format "%s/api/config/data" khoj-server-url))) (with-current-buffer (url-retrieve-synchronously config-url) (buffer-string)))