diff --git a/src/interface/emacs/khoj.el b/src/interface/emacs/khoj.el index 202e8c6f..79f6c724 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)))