Useful Unicode Symbols#

πŸ‘   \U0001f4a1 eye, toggle plain text password view
βœ”   \u2714 check mark
βœ”   \u2713 chec mark
βœ•   \u2715
βœ—   \u2717
⏳  \u23f3 sands of time
‴   \u2034 triple prime
β€·   \u2037 reversed triple prime
πŸ’¦  \U0001f4a6 splash sweat
πŸ˜“  \U0001f613 splash cold sweat

β™© 9833, Hex 2669, Octal 23151
β™ͺ  S9834, Hex 266a, Octal 23152
β™«  9835, Hex 266b, Octal 23153
♬ 9836, Hex 266c, Octal 23154

β™« Join us and share the software, β™ͺ β™ͺ you’ll be free hackers… β™© ♬

elem.textcontent = '\u{0001f4a9}';

html (use the &#x notation):
	<input name='utf8' value='&#x2714;'>

Print from shell:

```shell-session
echo -e '\u2713'     # u (lowercase)
echo -e '\U0001f4a9' # U (UPPERCASE)

Get hex from char:

$ echo -n πŸ’© | hexdump

Get info on a char:

  • vim: ga on char

  • emacs: C-8 C-x = on char

Make the menu key as the compose key on Linux:

$ setxkbmap -option compose:menu
<Multi_key> <less> <3>                  : "β™₯"   U2665 # BLACK HEART SUIT
<Multi_key> <colon> <parenright>        : "☺"   U263A # WHITE SMILING FACE
<Multi_key> <colon> <parenleft>         : "☹"   U2639 # WHITE FROWNING FACE

Enter Chars by UTF-8 code points (terminal, browsers, etc):

Hit ctrl+shift+u followed by their unicode hexadecimal codepoint. Examples:

203d          β€½     INTERROBANG
2713          βœ“     (vim ^kOK)
2714          βœ”
2717          βœ—     (vim ^kxx)
2718          ✘
2190          ←
2192          β†’
0001f4a9      πŸ’©
2639          ☹
263a          ☺
2665          β™₯
2605          β˜…
2606          β˜†
262a          β˜ͺ
066d          Ω­
2260          β‰      (vim ^k=!)
2400          ␀
2420          ␠

 βœ“ βœ— ← β†’ ☹ ☺ β™₯ β˜… β˜† β˜ͺ 

<< βœ“ βœ— ← β†’ ☹ ☺ β™₯ β˜… β˜† β˜ͺ Ω­ β‰  ␀ ␠ >>

## tree command chars

```text
β”‚Β Β  β”œβ”€β”€ tasklist
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ buffer
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ get.vim
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── set.vim
β”‚Β Β  β”‚Β Β  └── node.vim
β”‚Β Β  └── tasklist.vim

β”‚ \u2502, not the normal "pipe" char.
─ \u2500, not a "dash" or "minus" char.
β”œ \u251c
β”” \u2514

Ruby#

'ção'.length    # 3    works...
'ção'.upcase    # çãO  incorrect...
'ÇÃO'.downcase  # ÇÃo  incorrect...

Using rails active support:

'ção'.mb_chars.length.to_s          # 3
'ção'.mb_chars.upcase.to_s          # ÇÃO
'ÇÃO'.mb_chars.downcase.to_s        # ção

There is also UnicodeUtils gem.