Lister: Search in Unicode/UTF8

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
gizmocuz
Junior Member
Junior Member
Posts: 10
Joined: 2007-02-07, 09:42 UTC

Lister: Search in Unicode/UTF8

Post by *gizmocuz »

It would be nice if we could also search in Unicode/UTF8 like we can do now in the 'Find Files' dialog.

With regards,
Rob
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

It works

Post by *Clo »

2gizmocuz

:) Hello !

:?: It works in a Unicode¦UTF-8 text file as well, nothing to check…

:mrgreen: 
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Just switch the view to Unicode or UTF-8 first.
Author of Total Commander
https://www.ghisler.com
kamikaze
Junior Member
Junior Member
Posts: 4
Joined: 2009-10-01, 13:18 UTC

Post by *kamikaze »

Yes, this is a possible solution, but is quite unusable in the case the file is not a purely text file. Here is just an example: the main search dialog is able to finds all the files containing the unicode string FileDescription (part of the version info structure for an exe file), but the file lister failes to do so. I personally, in this case, transform the string in a regex: F.i.l.e.D.e.s.c.r.i.p.t.i.o.n. :D. For me, it would be nice an unicode search option in lister too.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

kamikaze wrote:Here is just an example: the main search dialog is able to finds all the files containing the unicode string FileDescription (part of the version info structure for an exe file), but the file lister failes to do so.
I think it happens because string begins from odd offset while Unicode characters are all 2 bytes length. In such case there's no way to find Unicode string within Lister.
kamikaze
Junior Member
Junior Member
Posts: 4
Joined: 2009-10-01, 13:18 UTC

Post by *kamikaze »

correction: the file lister does not have the option to do a unicode search. It does not fail, it just does no support this. Maybe it will :)
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Nope !

Post by *Clo »

2kamikaze

:) Hello !
… It does not fail, it just does no support this.
• Sorry, it supports to search in a Unicode text as long as the file is recognized and complies with the norms…
- I just checked this again, that works !
- TC and its Lister can't support all “five-legged sheeps” existing worldwide ! :P

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
kamikaze
Junior Member
Junior Member
Posts: 4
Joined: 2009-10-01, 13:18 UTC

Post by *kamikaze »

Hello,
my opinion is that searching a unicode string into a binary file is not such weird operation. I agree, only some users would use it, but then the main search dialog know how to do it (it finds unicode strings in binary files, not only in normal unicode text-files). :D
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Lister can search for Unicode strings in Unicode mode even if string starts from odd position. In this case lister will find string and select it, but you won't see it in Unicode mode 'cause it will be displayed in wrong way. But if you switch to HEX mode then, you'll see right text selected.
kamikaze
Junior Member
Junior Member
Posts: 4
Joined: 2009-10-01, 13:18 UTC

Post by *kamikaze »

Thanks! This is useful :D
Post Reply