react-native-blob-util: In Android not able to read Arabic translation JSON file using JSONStream
Arabic translation JSON file is downloaded to document directory and it is reading and parsing using RNFetchBlob.JSONStream.
Issue: In android when we tried to read Arabic translation file using JSONStream the callbacks done or fail in not getting called. And not throwing any exceptions. In iOS JSONStream is calling done block once the same Arabic json file read complete.
Please note: I have checked this with joltup/rn-fetch-blob
but I also tried to install the latest version of this library, and the result is same.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 19 (10 by maintainers)
Thank you so much @RonRadtke , and great collaboration @midhunm-c!
Yeah you’re right - I messed that one up when fixing the import cycles. Version 0.13.14 should fix it. It’s already live.
@midhunm-c branch is ready for you. You can install it via
npm install RonRadtke/react-native-blob-util#feature/utf8_fixThank you @RonRadtke !! Integrated the version 0.13.14 and now it’s working fine 😃
Glad to hear 😃
@RonRadtke this is a portion of the json file which makes problem.
This is added to a json file in android document directory and tried to read using JSONStream. done or fail block not getting called.
If I removed this Arabic text from the json the JSONStream is calling the done block.