Can python read or write UTF-8 files directly? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
- 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