storesafe / cordova-sqlite-evcore-extbuild-free

Cordova sqlite plugin with Android performance enhancements for PhoneGap Build, GPL v3 or commercial license options
Other
24 stars 13 forks source link

Incorrect handling of emojis and other 4-byte UTF-8 characters on Android #44

Open brodycj opened 5 years ago

brodycj commented 5 years ago

Workaround solution for crash in case of emojis and other 4-byte UTF-8 characters in cordova-sqlite-evcore-free-dependencies@0.8.6 (#7) is to replace each 4-byte UTF-8 character (starting with 0xF? value) with single ? mark. This behavior is observed on Android starting with 6.0.

On Android pre-6.0 emojis and other 4-byte UTF-8 characters are stored with non-standard encoding as described in https://github.com/litehelpers/Cordova-sqlite-storage/issues/564.