Page 1 of 1

content: search can not search .txt by utf8

Posted: Wed Jan 04, 2023 8:33 am
by walkinrain
when file use utf8
if use content:xxxx to search *.md . it's right .
after rename *.md to *.txt
search *.txt by content:xxxx . it's nothing.

xxx is gbk char

Re: content: search can not search .txt by utf8

Posted: Wed Jan 04, 2023 10:25 am
by void
Everything will use the system iFilter for txt files and utf8 content for anything without an assoicated iFilter.

Please try the utf8content: search function:

utf8content:xxxx



The system iFilter for txt files can have trouble reading UTF-8 files.

Please make sure your UTF-8 file has a UTF-8 BOM.