Hey —
I want to cycle through a string that contains glyphs that are causing a UnicodeDecodeError:
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xc4 in position 0: ordinal not in range(128)
What’s the best way to reference these in python? Do I need to convert them to unicode externally and then convert back when printing to the macro panel?
This wouldn’t convert either (ą = U+0105):
testuni = "U+0105"
test = testuni.decode(encoding=‘UTF-8’,errors=‘strict’)
print test
Any tips much appreciated.