IMAP search with non-ASCII characters fails
Expected behavior
It should return emails that contain the keyword in the mail title.
Actual behavior
It say 'search fails' and return nothing which the one exists on the server.
Steps to reproduce
1.check enable 'server-side search' in the account settings. 2.search like using chinese character '你好'. 3.hint the button of search on server. 4.it tells 'search fails'.
But it's ok when you use english character like 'hello', it performs as indeed. I think it's related to character code(ISO... ), like utf-8,GB18030,utf-16...
Environment
K-9 Mail version:5.600
Android version:7.1.2
Account type (IMAP, POP3, WebDAV/Exchange):IMAP,gmail
We need to use the CHARSET argument when using IMAP's SEARCH command. See https://tools.ietf.org/html/rfc3501#section-6.4.4
So it's on the roadmap?
BUG confirmed with latests version (5.806). Cannot search mails using latin chars (eg: "García").
Hi
I submitted a similar comment in an older bug, this is for Nordic symbols. See link. https://github.com/k9mail/k-9/issues/1140#issuecomment-1140369400
K9 version: 6.000 Android 11 Account type (IMAP/Exchange)
I can add that the phone and keyboard is set to US/English but one can still input funky characters (as one can receive emails containing them), so checking the system locale setting or the like won't help.
Please note that there's no need to provide specific examples where search also fails. This problem happens when any non-ASCII character is used.