Store and retrieve non-english data in sqlite database in android

I want to store and retrieve non-English data into sqlite database. I don’t know how to save my language in db.I read some information on forums where they provide information about UTF-8 and UTF-16, but I don’t understand how to store data in db. I hope someone helps me here Thank you in advance. Any suggestion is acceptable.

+4
source share
1 answer

SQLite uses UTF-8 internally, and Android libraries automatically convert between UTF-8 and the encoding used by Java strings.

There is nothing special about non-English data; anything in the Java string will be saved correctly.

+1
source

Source: https://habr.com/ru/post/1538736/


All Articles