DevUtilsApp / DevUtils-app

All-in-one Toolbox for Developers. Native macOS app.
https://devutils.com
Other
4.09k stars 222 forks source link

Incorrect Unicode value for emoji in the String Inspector tool #89

Open revolter opened 2 years ago

revolter commented 2 years ago

The Unicode value for the character 👋 should be U+D83D U+DC4B instead of U+1F44B.

trungdq88 commented 2 years ago

Hi @revolter, can you clarify this?

I'm not an expert at Unicode, but according to various sources, U+1F44B is the correct Unicode value for 👋.

https://www.compart.com/en/unicode/U+1F44B https://unicode-table.com/en/1F44B/ https://www.fileformat.info/info/unicode/char/1f44b/index.htm

revolter commented 2 years ago

I'm not an expert either 🙈

I was trying to create a regex for matching emojis, and my version worked, while the app's one didn't, and I thought that it's incorrect. After taking a better look on fileformat.info, I can see that my version is actually the UTF-16 encoding of it, while the app shows (I think) the UTF-32 encoding.

So maybe show them both?

trungdq88 commented 2 years ago

Hmm, I see. Noted on this.

I'll consider adding an option to support this.

Thanks for letting me know!