Apr-15-2019, 08:21 AM
import wcwidth symbols = [ '\N{ZERO WIDTH SPACE}', '\N{NARROW NO-BREAK SPACE}', '\N{MEDIUM MATHEMATICAL SPACE}', '\N{IDEOGRAPHIC SPACE}' ] for symbol in symbols: print(symbol, wcwidth.wcwidth(symbol))
Output: 0
1
1
2
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!