Skip to main content
added 36 characters in body
Source Link
Stéphane Chazelas
  • 586.8k
  • 96
  • 1.1k
  • 1.7k

If you want to extend it to UTF-8 characters (assuming you're in a UTF-8 locale):

$ perl -CA -le 'print ord shift' 😈
128520

$ perl -CS -le 'print chr shift' 128520
😈

With bash, ksh or zsh builtins:

$ printf "\U$(printf %08x 128520)\n"
😈

If you want to extend it to UTF-8 characters:

$ perl -CA -le 'print ord shift' 😈
128520

$ perl -CS -le 'print chr shift' 128520
😈

With bash, ksh or zsh builtins:

$ printf "\U$(printf %08x 128520)\n"
😈

If you want to extend it to UTF-8 characters (assuming you're in a UTF-8 locale):

$ perl -CA -le 'print ord shift' 😈
128520

$ perl -CS -le 'print chr shift' 128520
😈

With bash, ksh or zsh builtins:

$ printf "\U$(printf %08x 128520)\n"
😈
added 95 characters in body
Source Link
Stéphane Chazelas
  • 586.8k
  • 96
  • 1.1k
  • 1.7k

If you want to extend it to UTF-8 characters:

$ perl -CA -le 'print ord shift' 😈
128520

$ perl -CS -le 'print chr shift' 128520
😈

With bash, ksh or zsh builtins:

$ printf "\U$(printf %08x 128520)\n"
😈

If you want to extend it to UTF-8 characters:

$ perl -CA -le 'print ord shift' 😈
128520

$ perl -CS -le 'print chr shift' 128520
😈

If you want to extend it to UTF-8 characters:

$ perl -CA -le 'print ord shift' 😈
128520

$ perl -CS -le 'print chr shift' 128520
😈

With bash, ksh or zsh builtins:

$ printf "\U$(printf %08x 128520)\n"
😈
Source Link
Stéphane Chazelas
  • 586.8k
  • 96
  • 1.1k
  • 1.7k

If you want to extend it to UTF-8 characters:

$ perl -CA -le 'print ord shift' 😈
128520

$ perl -CS -le 'print chr shift' 128520
😈