Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How do i post Arabic letters using Android app? find my example below...the problem is on saving in database

<p><span>List&lt;NameValuePair&gt; params = new ArrayList&lt;NameValuePair&gt;(</span><span>);</span><span>params.add(new BasicNameValuePair("name"</span><span>,nameValue));</span><span>JSONObject json = jsonParser.makeHttpReques</span><span>t(url_create_user,"POST", params);</span><span>the arabic is shows as ? after saved in database</span></p>

user-image
Question ajoutée par mohammed al shareif , Team Leader , Beecell
Date de publication: 2014/09/15
Miriana Itani
par Miriana Itani , Senior Android Developer , Saudi Research and Publishing Company

First of all, I would like to know where exactly is the database, and where are the arabic words words showing?. I also suspect that you are posting the information on a website?

Ahammed Hafees
par Ahammed Hafees , Software Engineer Tech Lead , Trolley Kuwait

I also suspect that you are posting the information on a website.If it is about SQLITE database then,

Saving an Arabic text in your SQLITE database will not cause any issue,You can just use it as if you are dealing with English.

The real problem occurs when you are dealing with font.Setting an Arabic font may not work in lower versions of android.To overcome this you have to convert each and every Arabic letter of Arabic font file to bitmap then set it to a custom class of text-view.Use this text view instead of normal text view.It is not complicated as it seems to be.Perfect examples are available in internet.

Font issue in webview can be resolved by setting the property of webview.

 

 

 

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?