I
I
ivanburdin2018-04-05 15:16:28
Python
ivanburdin, 2018-04-05 15:16:28

How to read a file containing Cyrillic in Python 2.7?

Please help me figure out how to open a file with something like this and read it? The file is saved in utf-8 encoding.
5ac61362c3ea6413944377.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2018-04-05
@deliro

open('test.txt', encoding='utf-8')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question