You need to convert the codes into string characters and then join the characters together:
myString = ''.join(map(chr, eventData))
If you have a hard time understanding what the code above does look at the code below - it's quite similar. Both versions use chr()
to convert every numerical ASCI code to one-character string and then join the strings together. The only difference is, in the former version I replaced map()
with a simple for loop.
characters = []
for code in eventData:
characters.append(chr(code))
myString = ''.join(characters)