decode whole file python code example
Example 1: python open encoding utf-8
from io import open
f = open("test", mode="r", encoding="utf-8")
Example 2: open python choose encoding
open(filename, encoding='ISO-8859-15')
from io import open
f = open("test", mode="r", encoding="utf-8")
open(filename, encoding='ISO-8859-15')