0

What is the best way to open a file with the encoding? In python

I'm learning how to use files with python, and my teacher said that is always recommended to open a file using utf-8, why?

7th May 2018, 1:26 AM
Eduardo Perez Regin
Eduardo Perez Regin - avatar
1 ответ
0
Because utf-8 is standart and the best encoding. Using for example ACII encoding may corrupt your strings. Plus modules like easygui should work fine with utf-8, when with others-not very fine.
11th Jun 2018, 8:52 AM
MrNaif
MrNaif - avatar