When editing a file with letters with accents (as in french, spanish, etc; examples é, à, ù ç, ñ, etc), the one byte code according to ANSI standards (such as E9 for é, F1 for ñ, etc) is inserted, but this becomes two bytes when the file is saved.
This can be seen when re-editing the file.
Is'nt this a anomaly, or maybe a bug ?
Not a bug: Notepad issue, was: Strange behaviour of letters with accents
-
- Posts: 2
- Joined: 23 Mar 2022 12:46
Re: Strange behaviour of letters with accents
Thanks for the report.
What are the exact steps to reproduce this error? Usually HxD saves the byte sequence you see directly, and the conversion from text to bytes is done immediately, while pressing the key/key combo.
Unless you export it to the clipboard or some of the export file formats, this should not happen.
Do you maybe use another editor inbetween?
What are the exact steps to reproduce this error? Usually HxD saves the byte sequence you see directly, and the conversion from text to bytes is done immediately, while pressing the key/key combo.
Unless you export it to the clipboard or some of the export file formats, this should not happen.
Do you maybe use another editor inbetween?
-
- Posts: 2
- Joined: 23 Mar 2022 12:46
Re: Strange behaviour of letters with accents
You are right, the problem is interference between my text editor (Windows Notepad) and HxD, but it seems the problem is more with Notepad.
Apparently, when creating a new file with accents, Notepad encode them with 2 bytes instead of one.
And if HxD and Notepad are open at the same time, Notepad seems to prevail, and keep two bytes, even if the ANSI code was changed in HxD.
So Sorry, if you worried, nothing wrong here with HxD !!
Apparently, when creating a new file with accents, Notepad encode them with 2 bytes instead of one.
And if HxD and Notepad are open at the same time, Notepad seems to prevail, and keep two bytes, even if the ANSI code was changed in HxD.
So Sorry, if you worried, nothing wrong here with HxD !!
Re: Strange behaviour of letters with accents
Ok, thanks for letting me now it isn't a bug.
Idk if you saw, but Notepad has an option to set the encoding in the save as dialog. You can set ANSI there, this should solve the problem.
Idk if you saw, but Notepad has an option to set the encoding in the save as dialog. You can set ANSI there, this should solve the problem.