Closed AAGAN closed 3 years ago
This solved the BOM issue for reading the file in Python. On windows OS, ./tsunami > tsumani_output.txt is writing the file in utf-16 which causes an error if file is opened with utf-8 BOM signature.
Thanks, @AAGAN, do you know if this is true on Linux and macOS? I can test Linux in a day or so.
On Linux, the code works as is or with encoding = "utf-8"
encoding = "utf-8"
I created another pull request for this issue.
This solved the BOM issue for reading the file in Python. On windows OS, ./tsunami > tsumani_output.txt is writing the file in utf-16 which causes an error if file is opened with utf-8 BOM signature.