In PYTHON, how can we get messages correctly?

In PYTHON, how can we get messages correctly?
I can’t read messages outside the Latin alphabet.

attachment is encoded by base58

base58 already exists in code. problem with messages other than latin alphabet

This one will work

import pywaves as py
import base58
attach = py.tx(‘8NiW3JwgLtPTGQexamFyCvEr1xFk23VFQCQePzdVgnRe’)[‘attachment’]
print(base58.b58decode(attach).decode(‘utf-8’, ‘ignore’))

Just use decode(‘utf-8’, ‘ignore’)

1 Like

BoxiGod The code worked correctly. Thanks for the help