3 ms·
In that case you should be opening files in binary mode "b", then you will be operating in bytes. Also, there's no guessing happening in this instance. A local
by takeda 7y ago
In that case you should be opening files in binary mode "b", then you will be operating in bytes.
Also, there's no guessing happening in this instance. A locale configured in your environment variable are used if you open files using text mode.