How can I type the unicode character U+200B (zero-width space character) with my keyboard?
9 Answers
When using recent versions of Chrome/Chromium, you can use its console to copy the character to clipboard:
copy("\u200B") // works for BMP characters only (U+0000 to U+FFFF)
copy("\u{200B}") // works for all characters (U+0000 to U+10FFFF)
copy(String.fromCodePoint(0x200B))
- 421
- 4
- 5
First convert the hex 200B to decimal 8203
Second, making sure numlock is turned on, press the following keystrokes while holding down the Alt key, then striking the four digits on the numeric keypad, and finally releasing the Alt key.
Alt+8203
It will insert the proper character, but you may see garbage depending on the font you are using (does it contain a glyph for that character) as well as the editor you are using may not be unicode aware and treat it as two characters or something else completely.
Note: I tested this with the Arial Unicode MS font, and it worked like a champ.
- 6,607
Follow the instructions in Wikipedia. Unfortunately you need to set a registry key first.
After that formality is taken care of, just hold Alt and press + 2 0 0 B, typing the + and numbers on the numpad, and the letters normally.
- 2,337
You can go to this website: Symbols - it provides easy access to many special symbols and characters. At the bottom of the page, you see a button for "Zero Width Space" character, just click on that button to have the "Zero Width Space" character copied in the clipboard.
My go-to site for any special characters that I cannot enter via Unicode hexadecimal + Alt+X (such as in LibreOffice or Word, is Amp-what.com. You can search by character name(s), decimal, hex and even html entities. Click the desired character, a supersized box pops up and you can then click whichever part you need.
This selection box is especially useful when copying characters that you cannot easily select with your mouse, such as non-space characters or diacriticals. Simply clicking inside the box copies whichever character is there to your clipboard.
- 173
- 1
- 12
To type this on a laptop with no separate number pad, you'll need to turn numlock on, which will differ depending on your computer's manufacturer. The numbers 0-9 are then MJKLUIO789, respectively. On most laptops, these keys are marked as such. But, even if they aren't, it should still work.
- 1,776