Search files on contents does not work for CP437 box characters

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
prino
Posts: 354
Joined: 18 Mar 2012 21:14
Location: Vilnius, Lithuania
Contact:

Search files on contents does not work for CP437 box characters

Post by prino »

Trying to find files that are using the original IBM PC CP437, and entering the vertical bar, i.e. ALT-196.

First issue is that it shows as the broken vertical bar,
Second issue is that it does not show any files in the search

Not tried any other CP437 characters, but it would surprise me if they worked, as all box-characters seem to be translated to +, -, and ¦

And no I'm not really interested in the workaround of entering ever string as a hex-string, as some have lengths well over 200 characters.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
At last, a tiny bit of programming here... :mrgreen:

admin
Site Admin
Posts: 65172
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Search files on contents does not work for CP437 box characters

Post by admin »

:? You can type these characters into any Windows edit box using a regular keyboard?

prino
Posts: 354
Joined: 18 Mar 2012 21:14
Location: Vilnius, Lithuania
Contact:

Re: Search files on contents does not work for CP437 box characters

Post by prino »

Nope, and Cut & Paste them from both a CP437 aware program, Notepad++, and one that doesn't know anything about UTF-8 (Ravitz Editor) gives the same result.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
At last, a tiny bit of programming here... :mrgreen:

admin
Site Admin
Posts: 65172
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Search files on contents does not work for CP437 box characters

Post by admin »

Well, I have zero problems with these characters here. Can you send me a test file where it does not work?

prino
Posts: 354
Joined: 18 Mar 2012 21:14
Location: Vilnius, Lithuania
Contact:

Re: Search files on contents does not work for CP437 box characters

Post by prino »

Cut & Paste adds a cr/lf, delete that, and it works. However, entering Alt-179 enters a broken vertical bar, and pasting the data from notepad++ when the encoding is set to OEM US pastes box characters, but they are not found. Try finding "│ Day │" using all three methods.

It might be useful to optionally remove cr/lf from the (last) line of pasted data...
Attachments
trip.h-h.txt
(547 Bytes) Downloaded 85 times
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
At last, a tiny bit of programming here... :mrgreen:

admin
Site Admin
Posts: 65172
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Search files on contents does not work for CP437 box characters

Post by admin »

Content search uses the Active ANSI Code Page encoding, which probably is not CP437 (check out Help | Various Information. Here it is: Active ANSI Code Page: 1252). So, to find │ Day │ you have to search for ³ Day ³.

Post Reply