Answer the question
In order to leave comments, you need to log in
How to save unicode as cyrillic (python 2.7)?
There is a json line like
{u'name': u'\u0411\u043e\u0435\u0432\u043e\u0439 \u043a\u043b\u0438\u0447'}
data=json.dumps(json_data)
filename = 'test.txt'
out = open(filename, 'wb')
out.write(data.encode("utf-8"))
out.close()
u'\u0411\u043e\u0435\u0432\u043e\u0439 \u043a\u043b\u0438\u0447instead of Cyrillic.
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