Ansi to UTF-8 using python causing error
I tried the answer there to convert ansi to utf-8.
import io with io.open(file_path_ansi, encoding=\'latin-
This is how you can convert ansi to utf-8 in Python 2 (you just use normal file objects):
with open(file_path_ansi, "r") as source: with open(file_path_utf8, "w") as target: target.write(source.read().decode("latin1").encode("utf8"))