Answer the question
In order to leave comments, you need to log in
How to solve encoding problems with re.split?
Hello!
There is a .txt file with UTF-8 encoding and Cyrillic. Opens fine in jupyter (macOS).
I want to split it by tabs: I write f.split('/t'). I get something like:
xd0\xbc\xd0\xb0\xd0\xb3\xd0\xb0 \xd0\xbb\xd0\xb8\xd1\x81\xd1\x82\xd0\xbe\xd0\xb2\xd0\xb0\xd1\x8f
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question