Missing Unicode Characters in Notepad++
-
Hello,
A few Unicode characters are not being shown in Notepad++. The following image is as is shown in Visual Studio 2007
In Visual Studio:
The same when pasted in Notepad++:
This is what is show in the browser:
static const char sc_helloWorld[] = “happy\t\t 😃😄😅😆😊😎😇😈😋😏😌😁😀😂🤣🤠🤡🤑🤩🤪\n”
“flirting\t\t 😳😉😗😚😘😙😍🤤🤗😛😜😝”
“\nneutral\t\t 😶🙃😐😑🤔🙄😮😔😖😕🤨🤯🤭🧐”
“\nhush\t\t 🤫😯🤐😷”
“\ntired\t\t 😩😫😪😴😵”
“\nsad\t\t ☹😦😢😭🤒🤕🤮”
“\nangry\t\t 😒😠😡😤😣😧🤢🤬”
“\nfear\t\t 😬😓😰😱😲😞😥😟😨”
“\nmisc\t\t 🤥🤓🤖”
“\ncat faces\t\t 😸😹😺😻😼😽😾😿🙀🙈🙉🙊”
“\ngesture\t\t 🤦🤷🙅🙆🙋🙌🙍🙎🙇🙏🤳”
“\nbaby, child, adult\t 👶🧒👦👩👨👧🧔🧑🧓👴👵”
“\nfamily\t\t 👤👥👪👫👬👭”
“\ncultural icons\t 👲👳🧕👱”
“\nprofession\t 🤴👸👯👰🤰🤵🎅🤶👮👷💁💂🕴🕵”
“\nactivity\t\t 💃🕺💆💇💈🤱🧖🧘”
“\n fantasy\t\t 👼👻🧙🧚🧛🧜🧝🧞🧟👿💀☠🕱🕲👽👾🛸👹👺”; -
Are you using the same font setting in Notepad++ as you are in VS?
-
Nice point. Actually VS 2017 was in Consolas and Notepad++ in Courier New.
However, if I set Notepad++ to Segoe UI Emoji I can see all the characters (I had not checked that previously).
What happens with VS 2017 is that all characters are seen in every font.Although Segoe UI Emoji is not a great font for programming, is better than nothing and I don’t need to deal with emojis every day.
Thank you.
-
Sites like fileformat.info will often give font lists for a given emoji. For example, U+1F431 CAT FACE’s page links to a fontsupport page for that character – and it doesn’t list Consolas, so I’m not sure whether that page is just out of date, or whether Consolas doesn’t include it, and VS 2017 is using some fallback mechanism.
As discussed a few months back, Windows has a font-fallback mechanism for its builtin apps (like notepad.exe) and I know MS Word and similar also will automatically change the font if you try a glyph not available in the current font (actually, with Word, it sometimes changes the font even when the glyph is available, from what I remember). Given that Visual Studio is also a Microsoft product, there’s a reasonable possibility* that they “cheat”, and use the fallback fonts when the default font you have in VS doesn’t include a glyph for a given character/emoji.
*: I don’t use Visual Studio, so I don’t know for sure.
-
Notepad behaves like Notepad++, only shows the omitted characters on the Segoe UI Emoji font. However, VS 2017 definitely cheats. It always shows all characters for any font I select. However, the font really changes, only the special characters appear to be always the same. Having all characters available is useful for programming, I should say
-
Are you using the old version of Notepad++ as you are in VS? Please use the latest version.
Regards
Ronchi -
I am using the latest Notepad++. I use VS 2017 for C/C++, notepad++ for multiple things.