Encode data as utf-8

otherwise it will complain, see 1c85531090
This commit is contained in:
HyunggyuJang
2023-07-11 17:06:05 +09:00
committed by GitHub
parent f664a74e77
commit 88c42b3043

View File

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