Page 1 of 1

Find File containing text should find Unicode text too

Posted: Fri 18 Nov, 2016 09:31
by nuldev
Find File containing text currently finds only "one byte per character" texts. If a document file contains the text encoded in two bytes per charachter (UTF-16) then it isn't found. An example are XLS files written by PlanMaker of FreeOffice 2016. Finding UTF-8 texts would be nice too of course.

Find File containing text should find Unicode text too

Posted: Fri 18 Nov, 2016 11:37
by John Doe
Choose "Selected code pages" in combobox

Find File containing text should find Unicode text too

Posted: Fri 18 Nov, 2016 11:48
by 2useven10
Automatic detection or All standard codepages also works in most cases.

Find File containing text should find Unicode text too

Posted: Fri 18 Nov, 2016 12:39
by John Doe
Automatic detection: doesn't work for my sample xls
All standard codepages: there is no such choice in this combobox just found

Find File containing text should find Unicode text too

Posted: Mon 21 Nov, 2016 11:37
by nuldev
Thanks, I never took notice of the codepage combobox...
With the right choice here it finds UTF-16 text in UTF-16 files. But it fails in binary files if the searched text doesn't start at an even address in the file.
Here is a test XLS file: http://www.file-upload.net/download-121 ... h.xls.html
asdfg is found (starts at 93C) but qwert isn't (starts at 92F).