标签:
如上编码
ZERO WIDTH SPACE 在各个语言的表达。
JS中使用 var b = a.replace(/\u200B/g,‘‘); 来替换,去掉 ZERO WIDTH SPACE 。
http://www.fileformat.info/info/unicode/char/200b/index.htm
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" |
标签:
原文地址:http://www.cnblogs.com/pennbj/p/4859031.html