Can python read or write UTF-8 files directly? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Can python read or write UTF-8 files directly?

I mean is there an argument in the method to determine file encoding? Or we have to use binary mode?

13th Jul 2016, 3:45 AM
df32
df32 - avatar
1 ответ
- 1
Python can do that. When you read or write utf-8 txt file, it would be utf-8. There are many info about this, Google "open txt files python".
13th Jul 2016, 6:34 AM
Евгений Царьков
Евгений Царьков - avatar