Jan-28-2020, 07:33 AM
The type info is lost after ord(). Can't get it back unless store it first.
t = type(c) n = ord(c)...later
try: t(chr(n), encoding='utf8') except TypeError: chr(n)