Register now or log in to join your professional community.
<p><span>List<NameValuePair> params = new ArrayList<NameValuePair>(</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>
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?
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.