Hello, there is an icq bot in Python, if you send a message in English, then everything is fine, but I can not figure out the Russians, here is the message that I am sending

"Hello bot!"

that's what's coming

[('x04x1fx04 @ x048x042x045x04Bx00 x041x04> x04Bx00!', 'unicode')]

I tried different encodings, nothing happened.

    1 answer 1

    You can use the standard Python chardet library, which automatically detects message encodings.