-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
utf-8 encoded german umlaut gets scrambled! #1
Comments
Closed
Closing this one as a duplicate, thanks Hannes for the contribution, further discussion will be in #2. I also raised storesafe/cordova-sqlite-storage-help#35 to track the link you gave (I saw it before, really good). |
brodycj
pushed a commit
that referenced
this issue
Apr 5, 2018
(unwanted sign extension in conversion) THANKS to @spacepope (Hannes Petersen <[email protected]>) for pointing this one out. Closes #2 Fixes #1 (marked as duplicate) (Also reported in storesafe/cordova-sqlite-evcore-extbuild-free#19)
brodycj
pushed a commit
that referenced
this issue
Apr 6, 2018
(unwanted sign extension in conversion) THANKS to @spacepope (Hannes Petersen <[email protected]>) for pointing this one out. - #2 - fixes #1 (marked as duplicate) - storesafe/cordova-sqlite-evcore-extbuild-free#19
brodycj
pushed a commit
that referenced
this issue
Apr 11, 2018
brodycj
pushed a commit
to brodycj/cordova-sqlite-evcore-free-dependencies
that referenced
this issue
Apr 11, 2018
(cordova-sqlite-evcore-free-dependencies 0.8.3) ref: - storesafe/android-sqlite-evcore-ndk-driver-free#2 - storesafe/android-sqlite-evcore-ndk-driver-free#1 - storesafe/cordova-sqlite-evcore-extbuild-free#19
brodycj
pushed a commit
to cbforks/cordova-sqlite-evcore-legacy-ext-common-free-dev
that referenced
this issue
Apr 11, 2018
(cordova-sqlite-evcore-legacy-ext-common-free 0.0.6) using cordova-sqlite-evcore-free-dependencies 0.8.2 ref: - storesafe/cordova-sqlite-evcore-extbuild-free#19 - storesafe/android-sqlite-evcore-ndk-driver-free#1 - storesafe/android-sqlite-evcore-ndk-driver-free#2
brodycj
pushed a commit
to brodycj/cordova-sqlite-evcore-legacy-ext-common-free
that referenced
this issue
Apr 12, 2018
brodycj
pushed a commit
to storesafe/cordova-sqlite-evcore-extbuild-free
that referenced
this issue
Apr 12, 2018
(cordova-sqlite-evcore-extbuild-free 0.9.7-pre1) in included evcore-native-driver.jar for Android ref: - #19 - storesafe/android-sqlite-evcore-ndk-driver-free#1 - storesafe/android-sqlite-evcore-ndk-driver-free#2
brodycj
pushed a commit
to storesafe/cordova-plugin-sqlite-evplus-ext-common-free
that referenced
this issue
Apr 12, 2018
Merge https://github.com/litehelpers/cordova-sqlite-evcore-legacy-ext-common-free (Fix for multi-byte UTF-8 characters on Android, using cordova-sqlite-evcore-free-dependencies 0.8.2) ref: - storesafe/cordova-sqlite-evcore-extbuild-free#19 - storesafe/android-sqlite-evcore-ndk-driver-free#1 - storesafe/android-sqlite-evcore-ndk-driver-free#2
Now resolved. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
i am struggling with a huge problem getting special unicode characters (german umlaut) to get read correctly by https://github.com/litehelpers/Cordova-sqlite-evcore-extbuild-free plugin on Android.
A json gets saved to the SQLite database with the query:
with the following (shortened) stringifyed json as parameter:
Next the json is selected from the database with the query:
with parameters
$._id
andid-123456
which returns scrambled umlaute:I tried to dive in your native Android drivers implementation because this is not an issue on iOS neither on Windows.
Also when i adb pull the SQLite database to my development machine and look at the inserted columns, the umlauts are displayed correctly, so this probably is more a read than write related problem..
The SQLite DB encoding is UTF-8.
I assume that this is caused somehow by the fancy byte/string transformations done in sqlc.c lines 448ff. I can not debug it and therefore can not propose a fix or solution, neither am i a specialist on UTF-8 encodings.
Maybe this could help?
https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/
It would be great if you can get in touch and see if you can reproduce and hopefully fix this..
If i can supply more info you need or can help somehow, let me know..
Thanks..
The text was updated successfully, but these errors were encountered: