I've just noticed a problem in the rendering of a UTF-8 file. I can produce this problem using a very short test file: here is the hex code:-
EF BB BF 38 D7 90
This should encode the string "8<aleph>" (where aleph is a single character, U+05D0). There are 3 (related) problems that I have spotted with this:-
1. When the file opens, the text is rendered as "<aleph>8".
2. If I position the cursor after the "8" (as it appears in NPP, i.e. the second character) and hit backspace, it is the "<aleph>" which disappears.
3. If I select one of the two characters, the string is correctly rendered as "8<aleph>". If I select both of the characters, the string is once again incorrectly rendered (reversed).
Cheers,
Andy.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I've just noticed a problem in the rendering of a UTF-8 file. I can produce this problem using a very short test file: here is the hex code:-
EF BB BF 38 D7 90
This should encode the string "8<aleph>" (where aleph is a single character, U+05D0). There are 3 (related) problems that I have spotted with this:-
1. When the file opens, the text is rendered as "<aleph>8".
2. If I position the cursor after the "8" (as it appears in NPP, i.e. the second character) and hit backspace, it is the "<aleph>" which disappears.
3. If I select one of the two characters, the string is correctly rendered as "8<aleph>". If I select both of the characters, the string is once again incorrectly rendered (reversed).
Cheers,
Andy.