packwiz / packwiz-installer

An installer for packwiz modpacks, with automatic auto-updating and optional mods! Works well with MultiMC and on servers.
https://packwiz.infra.link/
MIT License
46 stars 21 forks source link

Read TOML files as UTF-8 #22

Closed Small-Ku closed 2 years ago

Small-Ku commented 2 years ago

I am using Windows 11 with Traditional Chinese. Java may read files with BIG-5 encoding instead of UTF-8 in my system. It results in unreadable characters with the text 樹葉飄落效果 in the description. 圖片

As a result, I need to fix this with escaped characters like https://github.com/Small-Ku/packwiz-packs/commit/941da5b931787b825c0aeeb542c8769ee02bcfe3 every time while packwiz refresh unescapes the characters.

comp500 commented 2 years ago

Hmm, I think it makes more sense to read the files as UTF-8 instead? I should be able to make packwiz-installer always use UTF-8.