I am using python3 to receive and process text messages from a telegram channel. I sometimes get messages containing a string like this:
Ехchanges: Віnance Futures
Looking pretty normal. But when I want to check
if 'Exchanges' in the_string:
I get
False
Trying to track this down:
the_string.encode()
yields
b'\xd0\x95\xd1\x85changes: \xd0\x92\xd1\x96nance Futures'
How can I convert this to a usual string?
'Exchanges: Binance Futures'