The Persian tag is for issues relating to Persian (Farsi) language.
Questions tagged [persian]
325 questions
13
votes
0 answers
How can I support Farsi (Persian) text in Android?
My users are using Android 2.2 that does not support Farsi fonts. How can I show my Farsi text correctly in Android 2.2 and 2.3?
user1308405
10
votes
2 answers
sort Persian strings for python
I want to use sort function of python but it does not work well.
sorted( ['ا', 'ب', 'پ', 'ح', 'س', 'ص', 'ف', 'ک', 'ک', 'ک', 'م', 'م']) =
['ا', 'ب', 'ح', 'س', 'ص', 'ف', 'م', 'م', 'پ', 'ک', 'ک', 'ک']

majid lesani
- 189
- 9
10
votes
4 answers
How to create PDF containing Persian(Farsi) text with reportlab, rtl and bidi in python
I've been trying to create a PDF file from content that can be English, Persian, digits or a combination of them.
there is some problems with Persian texts like: "این یک متن فارسی است"
۱- the text must be written from right to left
2- there is a…

r.aj
- 399
- 3
- 11
10
votes
1 answer
generating Persian PDF with iText
Hi I know that many people may have asked this question before. I've read almost all of them`but it couldn't help me solve my problem. I'm using iText java library to generate a Persian PDF. I'm using the following code:
Document document = new…

Reza Namvar
- 129
- 11
9
votes
3 answers
Material component persian datepicker in angular 2
Angular2 Material Component has a DatePicker that shows the date in the default format.
And only support change local to "fa-IR".
How can I format it to show Persian Date?

Afshin Razaghi
- 410
- 4
- 10
9
votes
5 answers
How can I use strlen in php for Persian?
I have this code:
$string = 'علی';
echo strlen($string);
Since $string has 3 Persian characters, output must be 3 but I get 6.
علی has 3 characters. Why my output is 6 ?
How can I use strlen() in php for Persian with real output?

user3932710
- 125
- 5
8
votes
4 answers
How to write unicode character farsi in C++ in ms-dos console?
How to write unicode character farsi in c++ in ms-dos?
cout<<"Helo world"<<"سلام جهان";

Samiey Mehdi
- 9,184
- 18
- 49
- 63
7
votes
3 answers
How to derive custom culture from .NET CultureInfo class?
I want to set my application culture to whatever I want, regardless of what the OS culture is. To obtain this I used CultureInfo class with "fa-IR" as culture, but it used the "GregorianCalendar" as default calendar and not the .NET PersianCalendar…

mehdix
- 4,984
- 1
- 28
- 36
7
votes
1 answer
Persian (farsi) numbers in highchart
I use Highcharts to draw some charts. My language is Persian (Farsi) and I want to draw charts with Persian numbers. But in Highcharts all numbers show in English.
Is there a way that I show numbers (all numbers: yaxis,tooltip, ...) in Persian?

narges
- 681
- 2
- 7
- 26
7
votes
5 answers
Persian character's issue in mysql database
When I insert Persian data to database, data will save like this: †Ø¯Ø± 50 لیتری
But when I read data from database and echo it on the web, they are Ok.
I need to read data in my database directly.
what is your solution?
Mysql setting:
Server…

Saman May
- 71
- 1
- 3
7
votes
3 answers
Persian Calender in MVC , Asp.net
I use a DateTime variable in MVC and I want to show Persian calender for
@Html.EditorFor(x=> x.ProductionDate)
How can I do it?

Ahmad
- 343
- 1
- 3
- 12
7
votes
2 answers
How can I have Jalali calendar or Jalali Date Picker in Kendo UI?
I need Jalali calendar (Persian calendar) or Jalali date picker with kendo UI, But I don't know how can I have it?

Maryam
- 81
- 1
- 2
6
votes
3 answers
Persian transliteration Java API
I need transliterate English to Persian and want to use it in offline mode. Is there any free API that I can use offline ?

stacker
- 177
- 1
- 2
- 12
6
votes
3 answers
PersianCalendar can't convert year/month/31(day) to standard date
I am trying to convert persianDate to standarddate .
public DateTime ConvertPersianToEnglish(string persianDate)
{
string[] formats = { "yyyy/MM/dd", "yyyy/M/d", "yyyy/MM/d", "yyyy/M/dd" };
DateTime d1 = DateTime.ParseExact(persianDate,…

Ehsan Akbar
- 6,977
- 19
- 96
- 180
6
votes
2 answers
Convert persian unicode to Ascii
I need to get the ASCII code of a Persian string to use it in a program. But the method below give the ? marks: "??? ????"
public string PerisanAscii()
{
//persian string
string unicodeString = "صبح بخیر";
// Create…

Mohsen
- 323
- 1
- 6
- 15