Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTF-16 BE BOM (Big Endian) encoding adds redundant characters when viewed in Hex Editor. #80

Open
liufeiyafly opened this issue Dec 1, 2023 · 2 comments
Labels

Comments

@liufeiyafly
Copy link

liufeiyafly commented Dec 1, 2023

For instance, when pasting the Chinese character or more in Notepad++ with UTF-8 encoding, convert the encoding of characters to UTF-16 BE BOM (Big Endian) and then viewing it in Hex Editor, additional characters appear after the character .
When there are redundant symbols, disabling the HEX viewing mode in the Hex Editor can even cause Notepad++ to crash abruptly.

The Hex Editor is version 0.9.12, while Notepad++ is version v8.6.

@ExE-Boss
Copy link

Also occurs with: UTF‑16 LE BOM (Little Endian)

@chcg
Copy link
Owner

chcg commented Jan 6, 2025

From https://www.compart.com/en/unicode/U+4E2D:

UTF-8 Encoding: | 0xE4 0xB8 0xAD
UTF-16 Encoding: | 0x4E2D
UTF-32 Encoding: | 0x00004E2D

Random chars are added on toggling between Hex and normal Editor view.

@chcg chcg added the bug label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants