ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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
تم إضافة السؤال من قبل mohammed al shareif , Team Leader , Beecell
تاريخ النشر: 2014/09/15
Miriana Itani
من قبل 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
من قبل 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.

 

 

 

المزيد من الأسئلة المماثلة