From cdd202a3de57db9a783cf65ccd1f4a7caf74f9a8 Mon Sep 17 00:00:00 2001 From: MachineMuse Date: Sat, 3 Aug 2013 14:19:18 -0600 Subject: [PATCH] changed localization reader to UTF-8 character encoding --- .../net/machinemuse/powersuits/common/Localization.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/minecraft/net/machinemuse/powersuits/common/Localization.scala b/src/minecraft/net/machinemuse/powersuits/common/Localization.scala index fd3a3fe..ecb00a8 100644 --- a/src/minecraft/net/machinemuse/powersuits/common/Localization.scala +++ b/src/minecraft/net/machinemuse/powersuits/common/Localization.scala @@ -5,6 +5,7 @@ import java.io._ import net.machinemuse.general.MuseLogger import java.util.Properties import cpw.mods.fml.common.registry.LanguageRegistry +import com.google.common.base.Charsets /** * Author: MachineMuse (Claire Semple) @@ -22,7 +23,7 @@ object Localization { try { val inputStream: InputStream = this.getClass.getResourceAsStream(LANG_PATH + extractedLanguage + ".lang") val langPack: Properties = new Properties - langPack.load(inputStream) + langPack.load(new InputStreamReader(inputStream, Charsets.UTF_8)) LanguageRegistry.instance.addStringLocalization(langPack, extractedLanguage) } catch { case e: Exception => {