零寬度空字符, 不可見紅點字符, ZERO WIDTH SPACE

  • Invisible red dot UNICODE character
  • Unicode Character ‘ZERO WIDTH SPACE’ (U+200B)

出現一個零寬度空字符 Bug,運氣好,想着是在 Chrome Console 中打印一下,直接發現了,不然根本發現不了這個問題。

Number​.isSafe​Integer(1);
Unicode Character 'ZERO WIDTH SPACE' (U+200B)

Unicode Character ‘ZERO WIDTH SPACE’ (U+200B)

Unicode Data
Name ZERO WIDTH SPACE
Block General Punctuation
Category [Other, Format Cf]
Combine 0
BIDI Boundary Neutral [BN]
Mirror N
Index entries ZERO WIDTH SPACE zwsp SPACE, ZERO WIDTH
Comments commonly abbreviated ZWSP this character is intended for invisible word separation and for line break control; it has no width, but its presence between two characters does not prevent increased letter spacing in justification
Version Unicode 1.1.0 (June, 1993)
Encodings
HTML Entity (decimal)
HTML Entity (hex)
How to type in Microsoft Windows Alt **+**200B
UTF-8 (hex) 0xE2 0x80 0x8B (e2808b)
UTF-8 (binary) 11100010:10000000:10001011
UTF-16 (hex) 0x200B (200b)
UTF-16 (decimal) 8,203
UTF-32 (hex) 0x0000200B (200b)
UTF-32 (decimal) 8,203
C/C++/Java source code “\u200B”
Python source code u"\u200B"
More…

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章