Remote Config getString() return different result between version 18.0.0 and version 19.0.0.
I have tried setting
org.gradle.jvmargs=-Dfile.encoding=UTF-8
systemProp.file.encoding=utf-8
in the gradle.properties
I also tried setting
compileOptions {
encoding = 'UTF-8'
}
in build.gradle
below is the code snippet
fun getRemoteString(key: String) {
val wording = FirebaseRemoteConfig.getInstance().getString(key)
Log.d(javaClass.simpleName, "wording= $wording")
return wording
}
I expected Firebase Remote Config return 登入閱讀,
just like what 18.0.0 returned
but now it returns ç»å¥é±è®,
for 19.0.0
Is there any settings I need to config?
Thanks.
I face the same issue.. as a temp solution Im converting the ISO_8859_1 String to UTF-8
newValue = new String(wording.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With