changed localization reader to UTF-8 character encoding
This commit is contained in:
parent
4809337fa5
commit
cdd202a3de
1 changed files with 2 additions and 1 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Reference in a new issue