Closed Ulincsys closed 9 months ago
Some mod developers save their manifests as UTF-16le (the default for the macOS notepad app iirc), which cannot be read in via utf-8-sig decoding. This change uses the magic lib to autodetect encoding and proceed appropriately.
utf-8-sig
magic
OH, awesome! Thanks for the contribution, I was wondering how to resolve this. I'll look into it tonight when I have some time.
Some mod developers save their manifests as UTF-16le (the default for the macOS notepad app iirc), which cannot be read in via
utf-8-sig
decoding. This change uses themagic
lib to autodetect encoding and proceed appropriately.