Find File containing text should find Unicode text too

You have encountered a problem using Far Manager? Here you can get help.
Post Reply
nuldev
Posts: 4
Joined: Fri 18 Nov, 2016 09:15
Has thanked: 1 time
Been thanked: 1 time

Find File containing text should find Unicode text too

Post 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.
User avatar
John Doe
Бюрократ
Posts: 13807
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 73 times
Been thanked: 426 times
Contact:

Find File containing text should find Unicode text too

Post by John Doe »

Choose "Selected code pages" in combobox
Attachments
2016-11-18_123648.png
2016-11-18_123648.png (6.71 KiB) Viewed 7976 times
2useven10
Posts: 5204
Joined: Mon 07 Sep, 2009 10:40
Has thanked: 18 times
Been thanked: 310 times

Find File containing text should find Unicode text too

Post by 2useven10 »

Automatic detection or All standard codepages also works in most cases.
User avatar
John Doe
Бюрократ
Posts: 13807
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 73 times
Been thanked: 426 times
Contact:

Find File containing text should find Unicode text too

Post 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
Last edited by John Doe on Fri 18 Nov, 2016 12:42, edited 1 time in total.
nuldev
Posts: 4
Joined: Fri 18 Nov, 2016 09:15
Has thanked: 1 time
Been thanked: 1 time

Find File containing text should find Unicode text too

Post 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).
Post Reply

Return to “Support and Troubleshooting”