Skip to content

Commit

Permalink
Fix i18N Bug : MLS rendering diacritical marks on configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ndegwamartin committed Jul 9, 2024
1 parent a2dd6f8 commit 61cfcfe
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import com.google.android.fhir.knowledge.KnowledgeManager
import dagger.hilt.android.qualifiers.ApplicationContext
import java.io.File
import java.io.FileNotFoundException
import java.io.InputStreamReader
import java.net.UnknownHostException
import java.nio.charset.StandardCharsets
import java.util.LinkedList
Expand Down Expand Up @@ -183,7 +184,9 @@ constructor(
val resourceBundle =
configsJsonMap[bundleName.camelCase()] // Convention for config map keys is camelCase
if (resourceBundle != null) {
return PropertyResourceBundle(resourceBundle.byteInputStream())
return PropertyResourceBundle(
InputStreamReader(resourceBundle.byteInputStream(), Charsets.UTF_8)
)
}
if (bundleName.contains("_")) {
return retrieveResourceBundleConfiguration(
Expand Down

0 comments on commit 61cfcfe

Please sign in to comment.