mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-14 01:39:40 +07:00
Translations will always be read with UTF-8 encoding
This commit is contained in:
@ -77,7 +77,7 @@ class TranslationFileReader(){
|
|||||||
fun read(translationFile:String): LinkedHashMap<String, String> {
|
fun read(translationFile:String): LinkedHashMap<String, String> {
|
||||||
val translations = LinkedHashMap<String,String>()
|
val translations = LinkedHashMap<String,String>()
|
||||||
val text = Gdx.files.internal(translationFile)
|
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
|
if(!line.contains(" = ")) continue
|
||||||
val splitLine = line.split(" = ")
|
val splitLine = line.split(" = ")
|
||||||
val key = splitLine[0].replace("\\n","\n")
|
val key = splitLine[0].replace("\\n","\n")
|
||||||
|
Reference in New Issue
Block a user