Is there a way to "insert" a Unicode character into a string in python? For example,
>>>import unicode
>>>string = u'This is a full block: %s' % (unicode.charcode(U+2588))
>>>print string
This is a full block: █
Yes, with unicode character escapes:
print u'This is a full block: \u2588'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With