Voljega / ExoDOSConverter

a custom game converter from the ExoDOS collection to emulation station based distribution format
153 stars 12 forks source link

Some run.bat files are not properly read or written #75

Closed Voljega closed 3 years ago

Voljega commented 3 years ago

Some .bat files like the one for Light Corridor, The (1990) (tatou.bat) uses original DOS/IBM encoding cp437 but we try to read convert and write them in 'utf-8' and this fail on Linux but not windows ...

File like this can be correctly read in notepad++ with encoding Encoding > Character Sets > Western European > OEM US

See if using cp437 encoding for reading and writing can solve the issue

https://riptutorial.com/encoding/example/23227/how-to-detect-the-encoding-of-a-text-file-with-python-