From 0366233be5164b2e67f37c2ba6174d6f40db9697 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Mon, 16 Dec 2019 19:47:35 +0200 Subject: [PATCH] Translations will always be read with UTF-8 encoding --- core/src/com/unciv/models/ruleset/Translations.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/models/ruleset/Translations.kt b/core/src/com/unciv/models/ruleset/Translations.kt index 4b863f5f5d..fded1634ae 100644 --- a/core/src/com/unciv/models/ruleset/Translations.kt +++ b/core/src/com/unciv/models/ruleset/Translations.kt @@ -77,7 +77,7 @@ class TranslationFileReader(){ fun read(translationFile:String): LinkedHashMap { val translations = LinkedHashMap() val text = Gdx.files.internal(translationFile) - for(line in text.reader().readLines()){ + for(line in text.reader(Charsets.UTF_8.toString()).readLines()){ if(!line.contains(" = ")) continue val splitLine = line.split(" = ") val key = splitLine[0].replace("\\n","\n")