ascii
Linux 中的命令快速且出色。它允许我们搜索字符或代码点并返回给定搜索的所有相关结果。 ASCII 扩展(例如:ISO-8859-1)和/或 Unicode 字符是否有类似的东西?
答案1
这unicode
工具提供类似的功能ascii
:
$ unicode -d ..255
.0 .1 .2 .3 .4 .5 .6 .7 .8 .9 .A .B .C .D .E .F
000.
001.
002. ! " # $ % & ' ( ) * + , - . /
003. 0 1 2 3 4 5 6 7 8 9 : ; < = > ?
004. @ A B C D E F G H I J K L M N O
005. P Q R S T U V W X Y Z [ \ ] ^ _
006. ` a b c d e f g h i j k l m n o
007. p q r s t u v w x y z { | } ~
008.
009.
00A. ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯
00B. ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿
00C. À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï
00D. Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß
00E. à á â ã ä å æ ç è é ê ë ì í î ï
00F. ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ
它可用于映射其他代码页(请参阅其--fromcp
选项):
$ unicode --fcp cp437 -d 200
U+255A BOX DRAWINGS DOUBLE UP AND RIGHT
UTF-8: e2 95 9a UTF-16BE: 255a Decimal: ╚ Octal: \022532
╚
Category: So (Symbol, Other); East Asian width: A (ambiguous)
Unicode block: 2500..257F; Box Drawing
Bidi: ON (Other Neutrals)
它还可用于按名称搜索字符:
$ unicode acute
U+00B4 ACUTE ACCENT
UTF-8: c2 b4 UTF-16BE: 00b4 Decimal: ´ Octal: \0264
´
Category: Sk (Symbol, Modifier); East Asian width: A (ambiguous)
Unicode block: 0080..00FF; Latin-1 Supplement
Bidi: ON (Other Neutrals)
Decomposition: <compat> 0020 0301
U+00C1 LATIN CAPITAL LETTER A WITH ACUTE
UTF-8: c3 81 UTF-16BE: 00c1 Decimal: Á Octal: \0301
Á (á)
Lowercase: 00E1
Category: Lu (Letter, Uppercase); East Asian width: N (neutral)
Unicode block: 0080..00FF; Latin-1 Supplement
Bidi: L (Left-to-Right)
Decomposition: 0041 0301
…