I am studying python and I have a question about encoding.
I have a txt file that contains:
00000 UNITED STATES
01000 ALABAMA
01001 Autauga County, AL
01003 Baldwin County, AL
01005 Barbour County, AL
01007 Bibb County, AL
and so on.
I open it with
f=open(namefile)
I have read that there is an option called encoding
(the name of the encoding used to decode or encode the file). What is the main purpose of it? For example if the txt file was written in binary would it be able to translate it? In my case it would be useless.