From 6e7baf42b1c938a743be7045c78dc602e5f584f8 Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 10 Oct 2019 16:03:12 -0400 Subject: [PATCH] Fixed encoding --- core/src/io/anuke/mindustry/mod/Mods.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/io/anuke/mindustry/mod/Mods.java b/core/src/io/anuke/mindustry/mod/Mods.java index a34935999a..27223a7f84 100644 --- a/core/src/io/anuke/mindustry/mod/Mods.java +++ b/core/src/io/anuke/mindustry/mod/Mods.java @@ -278,7 +278,7 @@ public class Mods implements Loadable{ if(file.extension().equals("json")){ try{ //this binds the content but does not load it entirely - Content loaded = parser.parse(mod, file.nameWithoutExtension(), file.readString(), type); + Content loaded = parser.parse(mod, file.nameWithoutExtension(), file.readString("UTF-8"), type); Log.info("[{0}] Loaded '{1}'.", mod.meta.name, (loaded instanceof UnlockableContent ? ((UnlockableContent)loaded).localizedName : loaded)); }catch(Exception e){ throw new RuntimeException("Failed to parse content file '" + file + "' for mod '" + mod.meta.name + "'.", e);