嗯,以下Python 3.5.1脚本显示某些字符是Co
Unicode 类别,即Other, Private Use。因此,您的应用程序应使用包含此类私有字符的字体来正确呈现它们。
>>> import unicodedata
>>>
>>> for char in u'\ue0b0',u'\u00b1',u'\ue0a0',u'\u27a6',u'\u2718',u'\u26a1',u'\u2699':
... print (char, unicodedata.category(char), unicodedata.name(char,'private use'))
...
Co private use
± Sm PLUS-MINUS SIGN
Co private use
➦ So HEAVY BLACK CURVED UPWARDS AND RIGHTWARDS ARROW
✘ So HEAVY BALLOT X
⚡ So HIGH VOLTAGE SIGN
⚙ So GEAR
>>>
比较类似PowerShell脚本的结果:
> 0xe0b0,0x00b1,0xe0a0,0x27a6,0x2718,0x26a1,0x2699 | Get-CharInfo | Format-Table -AutoSize
Char CodePoint Category Description
---- --------- -------- -----------
U+E0B0 PrivateUse Private Use
± U+00B1 MathSymbol Plus-Minus Sign
U+E0A0 PrivateUse Private Use
➦ U+27A6 OtherSymbol Heavy Black Curved Upwards And Rightwards Arrow
✘ U+2718 OtherSymbol Heavy Ballot X
⚡ U+26A1 OtherSymbol High Voltage Sign
⚙ U+2699 OtherSymbol Gear