U3000

3 views
Skip to first unread message

Charise Farag

unread,
Jul 26, 2024, 12:19:16 AM7/26/24
to sparselizardforum

To enter literal Unicode characters in a program, there are options: enter the character directly, e.g. "a", or use a special sequence of characters, e.g. "\u3000". There is extensive information in the Python 3 documentation at Unicode HOWTO.

If you print the string, it may show them in the \u format if necessary owing to output limitations. But we can make it show the actual codepoints of the characters by iterating over the string and outputting the ord() value of each character:

Reply all
Reply to author
Forward
0 new messages