chcg / NPP_HexEdit

Notepad++ Plugin Hexedit
821 stars 156 forks source link

Search does not find UTF8 values #78

Open Stavr0 opened 1 year ago

Stavr0 commented 1 year ago

When searching for hex values within a UTF-8 encoded file, the search does not find the second character in a MBCS character.

Steps to reproduce Create plain text file in UTF8 containing a character such as e acute preceded by a space. Switch to hex mode, the text should show as 20 c3 a9 Hit Home to set cursor to beginning of file Hit ^F to search and enter value a9

Expected The character is found at Address 2

Actual Message Find / Can't find is shown.

Notes The search is successful for c3 or c3 a9