mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-19 20:28:56 +07:00
Tutorials will now always be read with the correct encoding
This commit is contained in:
@ -26,7 +26,7 @@ object GameBasics {
|
||||
val Translations = Translations()
|
||||
|
||||
fun <T> getFromJson(tClass: Class<T>, name: String): T {
|
||||
val jsonText = Gdx.files.internal("jsons/$name.json").readString()
|
||||
val jsonText = Gdx.files.internal("jsons/$name.json").readString(Charsets.UTF_8.name())
|
||||
return Json().apply { ignoreUnknownFields = true }.fromJson(tClass, jsonText)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user