Answer the question
In order to leave comments, you need to log in
"\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u043E"?" />
Python. How to convert a string to unicode? "society"->"\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u043E"?
What's the point. You need to read lines from the file and prepare them for transmission to the server in the specified format.
for example, read "society" in the request to the server insert \u043E\u0431\u0449\u0435\u0441\u0442\u0432\u043E
Tried encode('utf-8'), encode('utf-16'), unicode and bytes. Every time something is nearby, but additional processing is required. Can eat all the same any standard means?
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