proc: ensure query string is utf-8

ensure that the query string is utf-8 before passing it to the backend.
This commit is contained in:
djcb 2017-11-08 21:26:00 +02:00
parent dbc162ef9b
commit 5f79535574
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ or an error."
(concat
"cmd:find query:%s threads:%s sortfield:%s reverse:%s maxnum:%d "
"skip-dups:%s include-related:%s")
(base64-encode-string query t)
(base64-encode-string (encode-coding-string query 'utf-8 t) t)
(if threads "true" "false")
;; sortfield is e.g. ':subject'; this removes the ':'
(if (null sortfield) "nil" (substring (symbol-name sortfield) 1))