arabic

Itext 5.5 Converting HTML to PDF for RTL languages (Arabic) not working on tomcat

你说的曾经没有我的故事 提交于 2019-12-12 04:17:41
问题 I am wiriting HTML to PDF Conversion of Arabic Text from Itext 5.5 and XMLWorker . This works perfectly fine when run stand alone Java program. (it sprint language in RTL as expected) but always print LTR when run the same program in tomcat. (tried even with hardcoded string, file inside tomcat application code). Here is the sample code . Taken from http://developers.itextpdf.com/question/how-convert-arabic-html-pdf public void createPdf(File file) throws IOException, DocumentException { //

Codeigniter / PHPexcel Set arabic title in properties of xls file

…衆ロ難τιáo~ 提交于 2019-12-12 04:09:00
问题 I am working on my web project using Codeigniter. I want to generate an excel file by setting the data in the file, for now that's cool. but I have a problem is that the site uses Arabic as a primary language, and I would set the title and description in the properties of excel file. when I open the excel file and I open the properties, it does not display the title and description in Arabic, but like this: هل تعتقد أن النظام السورÃ

Django mysql arabic encoding

柔情痞子 提交于 2019-12-12 03:32:32
问题 I've a django app with a mysql database. We are trying to launch the Arabic version of the website. The current language is English. For some reason when I write something in Arabic through the admin panel and click save, it shows ???? instead of the Arabic word i wrote. I've no idea how to fix it. I followed this post and added #-*- coding: utf-8 -*- to my admin.py, models.py and views.py files. It didn't work I also added these to my.conf mysql file to change the character set. It didn't

Need explanation on Language Stemmer of Solr

余生长醉 提交于 2019-12-12 03:12:29
问题 I'm using nutch with Solr for a developing a search engine for Arabic texts. I need to implement a stemmer on my Arabic texts, and while serching on Solr Stemmer I found that it provide those two filters <filter class="solr.ArabicNormalizationFilterFactory"/> <filter class="solr.ArabicStemFilterFactory"/> I tried them but did not understand what they do .. So please any one can help me with some examples?? and do these two do this: العملات Stemmed to عملة البسَاتِين ، بساتينكم Stemmed to

localizable.strings not working with Arabic string

淺唱寂寞╮ 提交于 2019-12-12 02:18:55
问题 I created a Localizable.strings file in XCode and then 2 languages in it.(english + Arabic ) I filled up these files with the language translations, but the just show translation in english, when I start with Arabic the key appear! in my code : NSLocalizedString("title", comment: "") Localizable.strings(english) "title" = "Error" ; Localizable.strings(Arabic) "title" = "خطأ" ; 回答1: I careated sample one and tried in Objective C.I got it. I set "title" = "خطأ" in Arabic Localization files

PHP iOS Push notifications arabic multilingual text larger in size

有些话、适合烂在心里 提交于 2019-12-12 02:09:21
问题 I don't really know how to ask these but hopefully i can make myself clear enough for you to understand my questions Below is the Arabic text which I want to send via Apple iPhone Push Notifications : يبدا بقرص العقيلي واللقيمات وينتهي مع خالد حرية بالامارات نكهة وبهار مع القصار-٦ مساءا على يشان الليله في انا والعسل مع غاده عبدالرازق تلفزيون الكويت Can i send this long text? Because when I prepare a payload, it says 360 bytes of size. While Apple allows only 256 bytes of payload. What can be

Printing a CP850 encoded string with Ruby (IRB)

浪尽此生 提交于 2019-12-11 23:33:57
问题 I want to open a text file (test.txt) that contains arabic text (its encoding is CP850), then print its content to STDOUT : # coding : CP850 STDOUT.set_encoding(Encoding::CP850); # not sure if it's necessary open('G:/test.txt',?r){|f| f.read.each_char{|c| print c}; # or puts f.read; } gets but it does not print the arabic characters, the output is some symbols and random characters. Using Ruby 2.2.3 回答1: Change the encoding of the file to utf-8. I don't know how this is accomplished in Ruby,

birt report arabic text not showing in pdf

筅森魡賤 提交于 2019-12-11 21:30:27
问题 Hi I'm trying to enter simple arabic text in a brt report, the arabic text shows fine in the editor, but in the pdf it shows unknown caracters. I'm guessing it's some sort of encoding, i tried to use tahoma font (since it includes arabic, ) but same problem. Any idea how to fix this ? Thanks 回答1: I had similar issue in my application.Its related to font. For that I have created my version of fontsConfig.xml and loaded it on my application start. EngineConfig class has the following method to

SpannableStringBuilder setSpan doesn't work on Arabic text

人盡茶涼 提交于 2019-12-11 19:24:46
问题 I am trying to build an Arabic string that contains spacial caracters with different color, text should be black and special catacters red, and different size between sentences. Like this: This is my TexView definition: <com.neopixl.pixlui.components.textview.TextView android:id="@+id/sura" android:layout_width="match_parent" android:layout_height="wrap_content" android:textSize="@dimen/kuran_sure_text_size" android:textDirection="rtl" pixlui:typeface="fatih_araz_font.ttf"/> And this is my

Retrieving Arabic text from editText in Android

混江龙づ霸主 提交于 2019-12-11 18:05:31
问题 I have an application in Android witch has an editText that takes Arabic text. Then based on this Arabic text i make a query in MySQL through php. The problem is that when i retrieve the Arabic text from the editText MySQL query returns null but when i write the Arabic text manually in the program (not retieving it from the editText) it works perfect and god. What is the problem any one can help me. Thanks. This is my php code <?php header("Content-type: text/html; charset=UTF-8"); $con