user1743295
user1743295

Reputation:

Storing and retrieving non english data in to sqlite database in android

I want to store and retrieve non english data into sqlite database.I don't know how to store my language in to db.I have read some info in forums they provide information about UTF-8 and UTF-16 ,yet i am not clear in how to stor my data into db . hope someone will help me out here Thanks in advance . any suggestion is acceptable .

Upvotes: 4

Views: 789

Answers (1)

CL.
CL.

Reputation: 180182

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

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

Upvotes: 1

Related Questions