By choosing to open the file in mode wb, you are choosing to write in raw binary. There is no character encoding being applied.
Thus to read this file, you should simply open in mode rb.
By choosing to open the file in mode wb, you are choosing to write in raw binary. There is no character encoding being applied.
Thus to read this file, you should simply open in mode rb.