... putty(UTF8+Use Unicode ...
Rather than using a hex escape sequence, it maybe easier to use the actual characters to test for resident fonts (if a character is missing this is an oxymoron since it will not be possible to choose it! - which means a source machine must create a file with the desired symbols in it and then display that file with the target machine).
Programmed glyph generation can also be done using character/UTF pairings of unicodes by extraction of UTF-8 or UTF-16:
python -c 'print "⌘ ✰ ⣿ ⚡ ☯ ⚑ ↺ ⤴ ⤵ ∆ ⌚"'
⌘ ✰ ⣿ ⚡ ☯ ⚑ ↺ ⤴ ⤵ ∆ ⌚
python -c 'print "⌘ ✰ ⣿ ⚡ ☯ ⚑ ↺ ⤴ ⤵ ∆ ⌚".decode("unicode_escape")'
â Ⱐ⣿ ⡠⯠â ⺠⤴ ⤵ â â
python -c 'print "⌘ ✰ ⣿ ⚡ ☯ ⚑ ↺ ⤴ ⤵ ∆ ⌚".decode("unicode_escape")
.encode("unicode_escape")'
\xe2\x8c\x98 \xe2\x9c\xb0 \xe2\xa3\xbf \xe2\x9a\xa1 \xe2\x98\xaf \xe2\x9a\x91
\xe2\x86\xba \xe2\xa4\xb4 \xe2\xa4\xb5 \xe2\x88\x86 \xe2\x8c\x9a
python -c 'print "⌘ ✰ ⣿ ⚡ ☯ ⚑ ↺ ⤴ ⤵ ∆ ⌚".decode("unicode_escape")
.encode("unicode_escape")
.decode("string_escape")'
⌘ ✰ ⣿ ⚡ ☯ ⚑ ↺ ⤴ ⤵ ∆ ⌚
python
Python 2.7.3 (default, Apr 20 2012, 22:44:07)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> u"⌘ ✰ ⣿ ⚡ ☯ ⚑ ↺ ⤴ ⤵ ∆ ⌚"
u'\u2318 \u2730 \u28ff \u26a1 \u262f \u2691 \u21ba \u2934 \u2935 \u2206 \u231a'
Unicode glyphs can be rendered using UTF-8 or UTF-16
thus Unicode U+2318
or UTF-16: 0x2318
or ⌘
is UTF-8: 0xE2 0x8C 0x98
Font details for a character can be found by literally searching for it in character map
. It is run as an icon utility or activated with the gnome-character-map
or gucharmap
terminal command. Press and hold the right mouse button over the character to identify the font of residence. Also, use Show only glyphs in this font
in the View
menu and then scroll through the font list with an arrow key to quickly find the character's font with other resident characters.
oops
previous answer below reiterates the obvious - was looking at answers rather than question
ubuntu@ubuntu:~$ echo '☢ ☍ ⌘ ✰ ⣿ ⚡ ☯ ⚑ ↺ ⤴ ⤵'
☢ ☍ ⌘ ✰ ⣿ ⚡ ☯ ⚑ ↺ ⤴ ⤵
and
python -c 'print u"\xbf \n FreeSerif\n" \
u"\u2019 \u201d \u219f \u21a1 \u21af \u21ba \u21c5 \u21e1 \u21e3 \n" \
u"\u2206 \u2207 \u2240 \u229b \u22c5 \u22c5\u22c5 \u2318 \u231a \n" \
u"\u25aa \u25b9 \u25cc \u25d4 \n" \
u"\u260d \u2622 \u262f \u2639 \u266f \u267a \u2691 \u2692 \u26a0 \u26a1 \u26af \n" \
u"\u2780 \u2781 \u2782 \u2783 \u2784 \u2785 \u2786 \u2787 \u2788 \u2789 \n" \
u"\u2707 \u2716 \u2730 \u2a02 \n DejaVu\n" \
u"\u2801 \u2809 \u280b \u281b \u281f \u283f \u287f \u28ff \n" \
u"\u2934 \u2935 \u254d \n".encode("utf8")'
prints
¿
FreeSerif
’ ” ↟ ↡ ↯ ↺ ⇅ ⇡ ⇣
∆ ∇ ≀ ⊛ ⋅ ⋅⋅ ⌘ ⌚
▪ ▹ ◌ ◔
☍ ☢ ☯ ☹ ♯ ♺ ⚑ ⚒ ⚠ ⚡ ⚯
✇ ✖ ✰ ⨂
➀ ➁ ➂ ➃ ➄ ➅ ➆ ➇ ➈ ➉
DejaVu
⠁ ⠉ ⠋ ⠛ ⠟ ⠿ ⡿ ⣿
⤴ ⤵ ╍
using gnome-terminal
ubuntu@ubuntu:~$ echo \$TERM = $TERM \ \$LANG = $LANG
$TERM = xterm $LANG = en_US.UTF-8
and
ubuntu@ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
ubuntu@ubuntu:~$
note: EOT and ENQ symbols are wrong
ref:
How can unicode symbols u+2404 ␄ EOT and u+2405 ␅ ENQ be corrected?
python -c 'print u"This is ^D EOT (NB!! no ;) \u2404 and ENQ ^E \u2405 ".encode("utf8")'
This is ^D EOT (NB!! no ;) ␄ and ENQ ^E ␅