Can python read or write UTF-8 files directly? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answer
- 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