开发者

Encoding and problem in viewing chars like "ö" "â" in android sqlite

开发者 https://www.devze.com 2023-01-31 00:58 出处:网络
I am using a sqlite database which contains some chars like \"ö\" \"ş\" \"â\". sqlite encoding is utf-8. i connect to sqlite database from console with sqlite3.exe and can view the content of the d

I am using a sqlite database which contains some chars like "ö" "ş" "â". sqlite encoding is utf-8. i connect to sqlite database from console with sqlite3.exe and can view the content of the database correctly. Chars are displayed correctly. However, when i connect to database and view them in android emulator in a listview, chars are corrupted a开发者_开发技巧nd cannot view them properly. what should i don in order to display those chars correctly? Is it something related with sqlite or android or android emulator? I made many trys and i think the problem is not in the database or database encoding.


Importing from csv file through sqlite3 console corrupts the chars. I wrote a java code to import csv file, and it worked fine.Thanks to Christopher.

0

精彩评论

暂无评论...
验证码 换一张
取 消