cdp1337 / Valheim-Mod-Manager

Mod manager for Valheim using thunderstore.io as its backend
GNU General Public License v3.0
5 stars 2 forks source link

Add UTF-16le support (fix SpeedyPaths manifest) #2

Closed Ulincsys closed 9 months ago

Ulincsys commented 11 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.

cdp1337 commented 11 months ago

OH, awesome! Thanks for the contribution, I was wondering how to resolve this. I'll look into it tonight when I have some time.