| ▲ | Aozora7 a day ago | |||||||||||||||||||
My favorite unicode character is zero width space. One of its funniest properties is that it's not a whitespace. Also, some programming languages treat it as a valid identifier. | ||||||||||||||||||||
| ▲ | eviks 14 hours ago | parent | next [-] | |||||||||||||||||||
That's new > For example, U+200B ZERO WIDTH SPACE was originally classified as a space character (General_Category=Zs), but it was reclassified as a Format character (General_Category=Cf) to clearly distinguish it from space characters in its function as a format control for line breaking. | ||||||||||||||||||||
| ▲ | nickcw a day ago | parent | prev | next [-] | |||||||||||||||||||
Ha! Yes I discovered that this is true in C as part of my IOCCC entry: https://github.com/ioccc-src/winner/blob/master/2025/ncw3/pr... | ||||||||||||||||||||
| ▲ | jonathanlydall 8 hours ago | parent | prev | next [-] | |||||||||||||||||||
Over a decade ago this caused a quite bit of head scratching for me as to why in our C# application a certificate's thumbprint was not matching with that in our App.config file, even though the characters were seemingly identical. Turns out Windows Certificate Manager had an "easter egg" that if you copied a certificate's thumbprint to your clipboard it included a zero width space with it. Very, very subtle and actually very hard to spot without doing a debug or something. There is a Stack Overflow of exactly this issue: https://stackoverflow.com/questions/11115511/how-to-find-cer... At some point (Windows 10?) Microsoft "fixed" the Certificate Manager to stop doing this. | ||||||||||||||||||||
| ▲ | gucci-on-fleek 19 hours ago | parent | prev | next [-] | |||||||||||||||||||
Braille Pattern Blank "⠀" (U+2800) is another one of my favourites, since it's also not considered whitespace, but it looks like it. It can actually be fairly helpful for forms that won't let you leave any field blank, since it bypasses most whitespace checks. | ||||||||||||||||||||
| ||||||||||||||||||||
| ▲ | Rendello a day ago | parent | prev | next [-] | |||||||||||||||||||
I use it for sites like Facebook where I want to type :) without it changing to the terrible `U+1F642 SLIGHTLY SMILING FACE` [1]. I wouldn't really mind if it were the `U+1F60A SMILING FACE WITH SMILING EYES` [2], but the first one is so laughably terrible, as if I'd really want to send an emoji to communicate a disingenuous, pained smile as a default. Some platforms let you backslash-escape sequences so they don't get turned to emoji, like \:), but for Facebook and the like, putting a ZWS in between the letters stops the conversion. Though if your emoji is at the end of a line, it'll potentially break your emoji between the two lines. since That's what a ZWS is for, after all. 1. https://util.unicode.org/UnicodeJsps/character.jsp?a=%F0%9F%... 2. https://util.unicode.org/UnicodeJsps/character.jsp?a=1F60A&B... | ||||||||||||||||||||
| ||||||||||||||||||||
| ▲ | TacticalCoder a day ago | parent | prev | next [-] | |||||||||||||||||||
> My favorite unicode character is zero width space. One of its funniest properties is that it's not a whitespace. My editor is configured to never show any character (except the one and proper newline) at less than the full-width of a regular character (in the monospace font I'm using ofc). And if it's not a visible ASCII char, not only it's always shown at least at full-width, it's also shown as bold magenta on a black background. As the non visibe zero-width is empty, it shows as full-width on a black background. Sticks out like a sore thumb. | ||||||||||||||||||||
| ||||||||||||||||||||
| ▲ | Cpoll a day ago | parent | prev [-] | |||||||||||||||||||
[dead] | ||||||||||||||||||||