I am using Fedora and Python3, and I want to enumerate all the characters by chr, like using the following program.
for i in range(0x10ffff + 1) :
try :
print(i, chr(i), sep='\t')
except UnicodeEncodeError :
print('Error:', i)
However, There are many characters which seems to be undefined, and is displayed by a small square with a hex representation inside it (like shown in the picture).
The question is, how can I use the program decide whether a unicode character is defined (like English letters and Chinese and Japanese characters), or is undefined (like in the picture).
Thanks.