Not a bug: Notepad issue, was: Strange behaviour of letters with accents

Bug reports concerning HxD.
Post Reply
Jean Tibar
Posts: 2
Joined: 23 Mar 2022 12:46

Not a bug: Notepad issue, was: Strange behaviour of letters with accents

Post by Jean Tibar »

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 ?
Maël
Site Admin
Posts: 1455
Joined: 12 Mar 2005 14:15

Re: Strange behaviour of letters with accents

Post by Maël »

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?
Jean Tibar
Posts: 2
Joined: 23 Mar 2022 12:46

Re: Strange behaviour of letters with accents

Post by Jean Tibar »

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 !!
Maël
Site Admin
Posts: 1455
Joined: 12 Mar 2005 14:15

Re: Strange behaviour of letters with accents

Post by Maël »

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.
Post Reply