changed localization reader to UTF-8 character encoding

This commit is contained in:
MachineMuse 2013-08-03 14:19:18 -06:00
parent 4809337fa5
commit cdd202a3de

View file

@ -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 => {