Page 1 of 1
Search files on contents does not work for CP437 box characters
Posted: 23 Jul 2024 16:22
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.
Re: Search files on contents does not work for CP437 box characters
Posted: 26 Jul 2024 17:31
by admin

You can type these characters into any Windows edit box using a regular keyboard?
Re: Search files on contents does not work for CP437 box characters
Posted: 26 Jul 2024 18:43
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.
Re: Search files on contents does not work for CP437 box characters
Posted: 27 Jul 2024 15:22
by admin
Well, I have zero problems with these characters here. Can you send me a test file where it does not work?
Re: Search files on contents does not work for CP437 box characters
Posted: 27 Jul 2024 18:01
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...
Re: Search files on contents does not work for CP437 box characters
Posted: 27 Jul 2024 18:41
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 ³.