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-
I had the same issue when I did try to write bytes to file. So my point is, bytes are already encoded. So when you use encoding keyword this leads to an error.