Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

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 added by mohammed al shareif , Team Leader , Beecell
Date Posted: 2014/09/15
Miriana Itani
by 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
by 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

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.