Find File containing text should find Unicode text too

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

Find File containing text should find Unicode text too

Postby nuldev » Fri 18 Nov, 2016 09:31

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: 11038
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 9 times
Been thanked: 62 times

Find File containing text should find Unicode text too

Postby John Doe » Fri 18 Nov, 2016 11:37

Choose "Selected code pages" in combobox
Attachments
2016-11-18_123648.png
2016-11-18_123648.png (6.71 KiB) Viewed 1751 times

2useven10
Posts: 2875
Joined: Mon 07 Sep, 2009 10:40
Has thanked: 2 times
Been thanked: 76 times

Find File containing text should find Unicode text too

Postby 2useven10 » Fri 18 Nov, 2016 11:48

Automatic detection or All standard codepages also works in most cases.

User avatar
John Doe
Бюрократ
Posts: 11038
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 9 times
Been thanked: 62 times

Find File containing text should find Unicode text too

Postby John Doe » Fri 18 Nov, 2016 12:39

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: 3
Joined: Fri 18 Nov, 2016 09:15
Has thanked: 1 time

Find File containing text should find Unicode text too

Postby nuldev » Mon 21 Nov, 2016 11:37

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-12109625/test_search.xls.html
asdfg is found (starts at 93C) but qwert isn't (starts at 92F).


Return to “Support and Troubleshooting”

Who is online

Users browsing this forum: No registered users and 2 guests