8.1.2: binary mode: \xFF also matches \x9F

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
AmigoJack
Posts: 531
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

8.1.2: binary mode: \xFF also matches \x9F

Post by AmigoJack »

When viewing a file in binary mode and searching for the character \xFF I also get matches for the character \x9F. This doesn't make sense.

Image

TextPad 8.1.2x64 on Windows 7x64.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

TextPad is treating the file contents as if it's text in Windows-1252 encoding, in which \xFF is ÿ (Latin small letter y with diaeresis) and \x9F is Ÿ (Latin capital letter Y with diaeresis).

If you don't want that behaviour, select Match case.
User avatar
AmigoJack
Posts: 531
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Post by AmigoJack »

That makes perfect sense and works as intended. Thanks! :)
Post Reply