FAQ Database Discussion Community


Force RTL layout direction not working for app

android,arabic,right-to-left
I'm trying to add RTL language support in my app (specifically Arabic right now) I'll be supporting English as well. What I've done: Set minSdkVersion to 17 Added android:supportsRtl="true" to my application tag in AndroidManifest.xml Switched my left/right attributes to start/end At first I made these changes manually, then I...

Is there a way to compare Arabic characters without regard to their initial/medial/final form?

python,string,arabic
In Latin script, letters have an upper case and a lower case form. In Python, if you want to compare two strings without regard to their case, you can convert them to the same case using 'string'.upper() or 'string'.lower() In Arabic script, letters can have an initial, medial, or final...

send and retrive arabic data from mysql database

php,android,mysql,utf-8,arabic
I want to bring Arabic data from mysql database I wrote the php code but it gives me ????? on arabic data any help to make it wokrs ?? <?php header('Content-Type: charset=utf-8'); $link=mysqli_connect("localhost","root","","arabicd"); mysql_set_charset('utf8',$link); if (mysqli_connect_errno($link)) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } mysql_query("SET character_set_results =...

Inserting and selecting Arabic using codeigniter

mysql,codeigniter,arabic
I am trying to insert arabic text into db using Codeingiter model. My Table field name and type is as follows: product_name_arab text utf8_general_ci Insertion works perfectly its inserted as Arabic... But the issue is now with display it back on view page... The data shows now as ??????????? ??????????...

How to map a arabic character to english string using python

python,unicode,arabic
I am trying to read a file that has Arabic characters like, 'ع ' and map it to English string "AYN". I want to create such a mapping of all 28 Arabic alphabets to English string in Python 3.4. I am still a beginner in Python and do not have...

Kivy Text Input for Arabic Text

python,kivy,arabic,right-to-left
I'm trying to use Kivy's text input for Arabic text. I have an Arabic font set up with my text input but when I type into the input (in Arabic) I just get Arabic letters appearing from left to right (and they're not connected as Arabic letters should be when...

Which direction should the back arrow point to in an arabic web-site?

html,web,arabic
I am working on a web-site which is compatible with Arabic language as well. But for security reasons, the browser back button will kill the session and user is expected to use the back button present on the page only. In case of Arabic language, in which direction should the...

Arabic text in R graphics

r,unicode,arabic,farsi
I'm having a problem with plotting Arabic text, it looks good on the console, but it doesn't show up quite right. (flipped & separate letters) Code: x<-"السلام عليكم" > x [1] "السلام عليكم" > plot(1:10,main=x) gives Some relevant session info: R version 3.1.2 (2014-10-31) Platform: x86_64-apple-darwin13.4.0 (64-bit) locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8...

node.js - issue with Arabic character encoding

json,node.js,encoding,arabic
I'm using node.js and express to send a Json file to client. the String in the database is something like "السلام". but the output of Json in the browser looks like this "های پاتایا". now the Jquery(or maybe something else) in the browser correctly decodes this to arabic, but in...

Arabic phrases in Flex 4.6 are flipped

arabic,flex4.6
I have a flex application (version 4.6) that needs to support arabic localization. The application already handles UTF-8 characters correctly as it is already available in French. But for some reasons the arabic texts are not correctly displayed and are flipped, i.e. labels are displaying "ghi def abc" instead of...

iOS regular expression arabic

ios,regex,localization,arabic,nsregularexpression
I come from this posts Regular Expression Arabic characters and numbers only How to match arabic words with reg exp? (didn't answer my question) I've tried ^[\p{Arabic} ]+$ and received 'Parse error', reason: 'Invalid escape sequence @ pos 3: ^[\ ▶p{Arabic} ]+$' I've also tried ^[\u0621-\u064A\s]+$ 'Parse error', reason: 'Invalid...

UTF-8 to CP864 (arabic) conversion

java,utf-8,arabic,cp864
I have the following task: some text in mixed latin/arabic written in UTF-8 needs to be converted for printing using POS-printer, which uses ancient one-byte code page 864. text.getBytes("ibm-864") suddenly shows many question marks instead of arabic characters, and after digging the code I understood that conversion table has some...

How to convert english numbers inside a string to Persian/Arabic numbers in Objective-C?

objective-c,arabic,persian
I have an english string that may or may not have numbers. But i want those numbers to be printed on screen as Persian numbers. For example if NSString *foo = @"a string with numbers 1 2 3;" then output should be a string with numbers ۱۲۳ The code I'm...

Arabic characters from html content to pdf using iText

html,pdf,text,itext,arabic
I am having trouble to display the Arabic Characters from HTML Content in PDF Generation as "?" I am able to display the Arabic text from String variable. At the same time I am not able to generate the Arabic Text from the HTML String. I want to display the...

Arabic words in invoice pdf print Magento

magento,pdf,tcpdf,arabic
I'm trying to fix this problem by using integration TCPDF in magento but i don't know how do that this is my try in this file \app\code\core\Mage\Sales\Model\Order\Pdf\Abstract.php require_once('TCPDF/TCPDF.php'); $pdf = new TCPDF_TCPDF (PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true,'UTF-8', false); I don't know waht i'm doing wrong. thank you....

Can't reproduce ANSI Encoding to Windows-1256 by C#

c#,encoding,arabic,ansi
I have some encoded data in mdb file, like this Úæäí, and ÚáÇä; I tried with notepad++, first creating new file with ANSI Encoding, after that putting that text on to it, finally changing the encoding to Windows-1256, the result is عوني ,علان perfect, but i can't reproduce this scenario...

How can I avoid adding href to an overlapping keyword in string?

php,regex,arabic
Using the following code: $text = "أطلقت غوغل النسخة المخصصة للأجهزة الذكية العاملة بنظام أندرويد من الإصدار “25″ لمتصفحها الشهير كروم.ولم تحدث غوغل تطبيق كروم للأجهزة العاملة بأندرويد منذ شهر تشرين الثاني العام الماضي، وهو المتصفح الذي يستخدمه نسبة 2.02% من أصحاب الأجهزة الذكية حسب دراسة سابقة. "; $tags =...

Regular expression for persian(arabic) letters without any numbers

java,regex,arabic,persian
In Java i'm looking for a regular expression that accepts any Persian( or Arabic ) letters except any Persian ( or Arabic) numbers. In order to have only letters i found a very good regular expression: [\u0600-\u065F\u066A-\u06EF\u06FA-\u06FF] although it is true and works for me, But we know that we...

libGDX, printing non-western fonts

java,fonts,libgdx,arabic,chinese-locale
I'm in the middle of finishing my libGDX android game and I have problems with making localizations. I want my game to be localized in Polish, English, Arabic and Chinese. To do this, I'm using libgdx I18NBundle which works perfectly fine. I have no problems with the former 2, they...

PHP - Changing charset for arabic characters using file_get_contents

php,utf-8,file-get-contents,arabic
I am getting an arabic translation using google, this is my code: header('Content-Type: text/html; charset=UTF-8'); $page=file_get_contents("http://www.google.com/translate_t?langpair=en|ar&text=hello",FILE_TEXT); $page=substr($page,strpos($page,"TRANSLATED_TEXT")+strlen("TRANSLATED_TEXT")+2); $page=substr($page,0,strpos($page,"';INPUT_TOOL_PATH")); echo mb_detect_encoding($page); // edited 2015/05/26 echo mb_convert_encoding($page, 'UTF-8', 'ISO-8859-6'); If you follow the link on the file_get_contents function, you will see...

How to display Arabic unicode text in page that retrieved from database

java,unicode,utf-8,xhtml,arabic
I need your help in displaying some Arabic text which is stored in a variable in the xhtml page. I have configured my project in jdeveloper to include UTF-8 in the properties and the Arabic text is displayed correctly. I have a variable called bankName and it has the unicode...

How to display checkbox on the left when change language of Android app to Arabic?

android,checkbox,settings,locale,arabic
In Settings of my Android app, I use many of checkboxPreferences. When the locale selected is English, text appears at the Left side and Check box at the right side. Text ------------------Checkbox When I change locale to Arabic, I want to get this format: Checkbox---------------Text But it keeps the same...

“Right to left” order of different directioned spans

html,css,arabic,right-to-left
I have the following html: <div dir="rtl"> <span>"arabic 1"</span> <span>"عربي 2"</span> <span>"arabic 3"</span> <span>"arabic 4"</span> </div> All I am trying to do is to make those spans appear in the same order they are from right to left because they are mainly containing Arabic text, but also possibly any other...

Implement a semantic web search engine using Arabic wordnet

web-applications,arabic,wordnet
I want to develop a web application that will use the current AWN, and provide the user to obtain semantic results. What I require are the things that I need to know before going into implementation of the system. My purpose is to do semantic search in the Holy Quran....

Arabic unicode strings generated by gettext are shown scrambled in Qt UI

python,qt,unicode,pyside,arabic
I am working on a multi-language interface using Qt4 and pyside. Languages works fines on the mainform. I used 2 ways for localization: Qt tr function for Qt UI files Gettext for python scripts and Jinja2 html templates When I show Qt dialogs with gettext translated strings, Arabic strings are...

Arabic Characters are not recognized when exporting gridview to excel

c#,asp.net,excel,gridview,arabic
I have problem with recognizing the Arabic Characters when I export Gridviews to excel. the Arabic Text appears like "خلاص" , it doesn't recognize the Arabic Data as well as the Arabic Gridview header I'm using the following code for exporting to excel many Gridviews in the same web application,...

Generate Arabic alphabet to SVG

bash,svg,arabic
I created letters based on ASCII codes in SVG. Each character in a separate file. This is for use as clipart in a drawing app. The following is an example of a script I used to generate the SVG: cat <<EOF > f.svg <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#"...

Text.BoringLayout WIDTH is set to 0 (not showing) in Android TextView When I have an non-English text?

android,android-layout,textview,arabic,persian
I have an Android Widget TextView, when I setText with Persian charachters, it just not showing! and I guess the mBoring (Text.BoringLayout property) is responsible, because the width is set 0. there is no problem when I set english + persian strign, and the width set to proper value such...