juk0de / mtf2json

Convert MegaMek's MTF format to JSON.
GNU General Public License v3.0
2 stars 0 forks source link

Support mixed encodings in MTF files #6

Closed juk0de closed 2 months ago

juk0de commented 2 months ago

For unknown reasons, MTF files are encoded in different formats. Most are pure ASCII, but some contain UTF-8 characters, while others contain CP-1252 (also known as Windows-1252) characters. Currently, this causes exceptions when trying to read a file with the wrong format.

Examples: