Questions tagged [persian]

The Persian tag is for issues relating to Persian (Farsi) language.

325 questions
73
votes
4 answers

How to support Arabic text in Android?

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)…
babi
  • 779
  • 1
  • 6
  • 6
64
votes
7 answers

How convert Gregorian date to Persian date?

I want to convert a custom Gregorian date to Persian date in C#. For example, i have a string with this contents: string GregorianDate = "Thursday, October 24, 2013"; Now i want to have: string PersianDate = پنج‌شنبه 2 آبان 1392 ; or string…
JAC
  • 950
  • 1
  • 7
  • 11
48
votes
18 answers

How to Convert Persian Digits in variable to English Digits Using Culture?

I want to change persian numbers which are saved in variable like this : string Value="۱۰۳۶۷۵۱"; to string Value="1036751"; How can I use easy way like culture info to do this please? my sample code is: List NERKHCOlist = new…
Amin AmiriDarban
  • 2,031
  • 4
  • 24
  • 32
42
votes
3 answers

How can I use a right to left language in "Sublime Text" editor

I want to use some strings which are in my language (Persian) in "Sublime Text", but the editor does not show them correctly, for example: it should be: عنوان صفحه but this is how sublime is showing it: The encoding is set to…
MohammadHossein R
  • 1,249
  • 1
  • 16
  • 30
37
votes
6 answers

Twitter Bootstrap CSS that support from RTL languages

I just discover Twitter Bootstrap and I'm wondering if there is a right-to-left (RTL) version of it. Does anyone know?
Ehsan
  • 2,273
  • 8
  • 36
  • 70
35
votes
8 answers

Why words are shuffled when I insert English words in any Arabic/Urdu/Persian text on Notepad or MS Word?

I can write Arabic/Urdu/Persian on MS Word or Notepad just fine, but whenever I insert any English word or number, the sequence is just disturbed and seems like the all the words have been shuffled in the sentence. Look at the example below: یہ ایک…
Arfeen
  • 2,553
  • 5
  • 29
  • 48
34
votes
13 answers

How to display Persian(Farsi) numbers in views

I want to display Persian(Farsi) numbers on views. For example I calculated a date and converted it to Jalali calendar but how can I display it by Persian numbers?
Farnad Tohidkhah
  • 1,229
  • 1
  • 10
  • 19
29
votes
5 answers

How to print DateTime in Persian format in C#

What is the simplest way to print c# DateTime in Persian? currently I'm using : static public string PersianDateString(DateTime d) { CultureInfo faIR = new CultureInfo("fa-IR"); faIR.DateTimeFormat.Calendar = new PersianCalendar(); …
user590747
  • 345
  • 1
  • 4
  • 9
18
votes
5 answers

How to feed DatePicker widget with other calendar sytems?

Is there anyway to use DatePicker widget with other calendar systems ? I need a picker for Jalali (Persian) Calendar system, but i dont know how to feed DatePicker with my data. I've studied methods related to DatePicker but couldn't find anything…
Nevercom
  • 840
  • 3
  • 14
  • 38
17
votes
5 answers

How to comment in a Right to left language in Visual Studio IDE

I want to comment in visual studio in Persian (which is a right to left language) like this: //.برای نگهداری مقدار اولیه ی کالا می باشد value_ متغیر But it seems the code editor does not support RTL languages and reorders the words so the result…
Hosein Masoomi
  • 187
  • 1
  • 10
16
votes
3 answers

using preg_match to detect persian (farsi) characters in string

I am trying to validate form data from server-side. my interest is that the user just fill the form by Persian characters. I am using this code: $name=trim($_POST['name']); $name= mysql_real_escape_string($name); if…
John
  • 2,461
  • 5
  • 21
  • 18
16
votes
2 answers

Regular expression for persian(arabic) letters without any numbers

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…
Elyas Hadizadeh
  • 3,289
  • 8
  • 40
  • 54
15
votes
1 answer

Copy and Paste String (Persian, Arabic) in PHPStorm is Wrong

Copy and Paste String (Persian, Arabic) in PHPStorm is Wrong my string is: به نام خداوند بخشنده مهربان Describe In image: How can this problem be solved?
user3770797
  • 374
  • 5
  • 24
15
votes
3 answers

persian/arabic search in sqlite android gives bad result

i have a problem with sqlite database. it seems to not support full persian/arabic characters. when i search some fields based on persian chars, most of the times Sqlite can't recognize those chars. i insert data into database by copy them from HTML…
hojjat reyhane
  • 648
  • 1
  • 8
  • 25
13
votes
4 answers

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

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…
Dan Bailiff
  • 1,513
  • 5
  • 23
  • 38
1
2 3
21 22