Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am developing an Android application for Gujarat's farmers. So this app should be in Gujarati also.

Is there any way so that I can store my data in Gujarati in SQLite?

share|improve this question
2  
Aakash, this question doesn't seems good for this site. And you should explain your efforts. Please read the FAQs to know the details. –  Mudassir Jul 26 '12 at 2:51
    
@Mudassir: hi.. I am just a beginner in Android development and i did not find any thing about android app in gujarati. And for this app i am just in analysis phase so i am checking feasibility if this is possible. –  Aakash Rayate Jul 26 '12 at 4:23
    
Aakash, This site is not for technical queries specific to a particular platform. For that you should go over to stackoverflow.com. It is meant for techical queries. Ask your question in a more generic fashion; what is applicable to Gujarati is applicable to any other language. –  DPD Jul 26 '12 at 5:20
1  
@Mudassir: Akash's question is specific and relevant to anyone who does programming in various foreign-languages. I don't think his question is un-welcome here. –  Nav Jul 26 '12 at 8:06
1  
@AakashRayate: The reason you didn't find anything about android app in Gujarati is, that it JustWorks™. The reason Mudassir is saying the question is bad is, that you should first try and only ask if you failed. –  Jan Hudec Jul 26 '12 at 9:29
show 4 more comments

1 Answer

Yes. Just store those strings.

Sqlite always works with unicode strings. Java String is also unicode. So everything should work out of the box. If it does not, than say what that is.

Internally sqlite encodes all strings either in utf-8 or utf-16 (there is a per-database option), but since it always converts them as needed (to one or other for comparison and to/from java.lang.String in the API), you don't even need to care.

share|improve this answer
    
Thanx a lot for this info. Actually i was unaware of these formats like utf-8 or utf-16. Now I've got the idea. Thanx again. –  Aakash Rayate Jul 27 '12 at 3:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.