farsi

Dipaly farsi text in android webview (for phones not supporting farsi)

家住魔仙堡 提交于 2019-12-01 20:00:36
问题 In farsi letters are attach together to form writing scripts. However when I save HTML pages using "UTF-8" or "Windows-1256" encdoings, and try to display them using webview in android, letters are diplayed seperately and in left-to-right direction (instead of RTL). I should notice that this case is not happening in phones supporting farsi. Correct form should be like this (snapshot from phone supporting farsi): Bad-formed text happens in phones not supporing farsi (Persian): It should be

Dipaly farsi text in android webview (for phones not supporting farsi)

痴心易碎 提交于 2019-12-01 19:41:54
In farsi letters are attach together to form writing scripts. However when I save HTML pages using "UTF-8" or "Windows-1256" encdoings, and try to display them using webview in android, letters are diplayed seperately and in left-to-right direction (instead of RTL). I should notice that this case is not happening in phones supporting farsi. Correct form should be like this (snapshot from phone supporting farsi): Bad-formed text happens in phones not supporing farsi (Persian): It should be noticed i've used persian font in both cases. I also see some solutions for normal Strings in java which

sqlite database in persian language

我是研究僧i 提交于 2019-12-01 05:58:09
I tried to create a sqlite database from a csv file. I did it as it is said in this page : using your own sqlite db in android and this : import csv to sqlite but the problem is when the table contains data in farsi/arabic language. sqlite shows that character as "_". what should I do? PS. I want to use this DB in an android project. edit: I import csv to sqlite using this code: CREATE TABLE "android_metadata"("locale" TEXT DEFAULT 'en_US'); CREATE TABLE "addresses"(_id integer PRIMARY KEY, nametext, meaning text); .separator "," .import test.csv mydb sqlite supports UTF-8, UTF-16 and this is

.NET How to parse a Persian / Farsi date string (Jalali calendar) into a DateTime object?

回眸只為那壹抹淺笑 提交于 2019-11-30 03:50:18
I've run across several great code libraries for converting a Persian (Jalali calendar) date to a Gregorian date. However, my original source is a string, not a DateTime object. There doesn't seem to be official support in the .NET framework for parsing dates using the Persian calendar (if I'm wrong, please show me!). My goal: string persianDateString="1390/02/07"; DateTime persianDateTime = MyPersianParser.Parse(persianDateString, "yyyy/mm/dd"); And of course, some dates may use word names for months and days of the week, so I'd like to be able to support the standard format string protocol.

How to support Arabic text in Android?

余生颓废 提交于 2019-11-29 06:00:27
I am getting Arabic text from server successfully. Retrieved text I want display in code but its showing boxes instead of Arabic text. Assume that t array values are Arabic text from server. string[] t={" "}; Textview tv = (Textview) findviewByid(R.id.text); tv.setText(t[0]); Android 2.1 does not have Arabic font. Android 2.2 has Arabic font but does not show your word correctly. Android 3.x supports Arabic completely. For Android 2.1 you must set the typeface Farsi.GetFarsiFont(this) and then use Farsi.Convert("سلام") For Android 2.2 you do not need setting font but must use Farsi.Convert(

MS Word VBA to display Unicode strings

早过忘川 提交于 2019-11-28 02:21:19
We have some VBA code in MS Word 2010 which needs to display Persian (Farsi) words dynamically; in other words, depending on which buttons the user clicks on the VBA app window, we will display a different string of Persian. The only way we discovered to do this was to use something like this and concatenate a very long string character by character: the ChrW(&633) . Do you know another way we can do this? The strings will remain the same, but we need a couple of different ones. Can they be loaded from a file? Your help is much appreciated. Thanks. Lets have an UTF-8 text file unicode.txt , a

How to support Arabic text in Android?

こ雲淡風輕ζ 提交于 2019-11-27 23:33:52
问题 I am getting Arabic text from server successfully. Retrieved text I want display in code but its showing boxes instead of Arabic text. Assume that t array values are Arabic text from server. string[] t={" "}; Textview tv = (Textview) findviewByid(R.id.text); tv.setText(t[0]); 回答1: Android 2.1 does not have Arabic font. Android 2.2 has Arabic font but does not show your word correctly. Android 3.x supports Arabic completely. For Android 2.1 you must set the typeface Farsi.GetFarsiFont(this)

MS Word VBA to display Unicode strings

放肆的年华 提交于 2019-11-26 22:12:01
问题 We have some VBA code in MS Word 2010 which needs to display Persian (Farsi) words dynamically; in other words, depending on which buttons the user clicks on the VBA app window, we will display a different string of Persian. The only way we discovered to do this was to use something like this and concatenate a very long string character by character: the ChrW(&633) . Do you know another way we can do this? The strings will remain the same, but we need a couple of different ones. Can they be

How to support Arabic text in Android?

你。 提交于 2019-11-25 22:32:58
问题 I am getting Arabic text from server successfully. Retrieved text I want display in code but its showing boxes instead of Arabic text. Assume that t array values are Arabic text from server. string[] t={\" \"}; Textview tv = (Textview) findviewByid(R.id.text); tv.setText(t[0]); 回答1: Android 2.1 does not have Arabic font. Android 2.2 has Arabic font but does not show your word correctly. Android 3.x supports Arabic completely. For Android 2.1 you must set the typeface Farsi.GetFarsiFont(this)