Closed mars-lan closed 5 years ago
That is duplicated of #13 and I am also curious of the root cause.
Could you please these information? Thank you for reporting this issue to me.
Is the problem reproducible on Android emulator or only on real device?
What's your Android system language?
What's is your react-native version and react-native-v8 version? Please check the real version from yarn.lock.
On the same device which had the problem, could you reproduce the problem for a simple test case? E.g. react-native init RN059 --version react-native@^0.59.10, adding react-native-v8 and use my sample code above.
Verify the text from bundle, is the text a normal UTF-8 text? (Download bundle from wget 'http://localhost:8081/index.bundle?platform=android&dev=true&minify=false')
Will follow up with more details later. Meanwhile a quick update: The strings are only garbled in debug build. When running a release build on the emulator, all strings are displayed correctly.
Publish react-native-v8 0.59.10-patch.2
, 0.60.4-patch.2
, 0.60.5-patch.0
which all include #17 fix.
Please choose a version to see if the new version did help for the issue.
Thanks for all your help.
Encountered the following encoding issue when using 0.60.4-patch.1 + RN 0.60.4. The same string displayed perfectly on JSC or Hermes.