Questions tagged [farsi]

The Farsi tag is for issues relating to Persian (Farsi, فارسی, پارسی) language.

188 questions
83
votes
11 answers

Is there any library or algorithm for Persian (Shamsi or Jalali) calendar in Android?

I want to convert Gregorian (western) date to Persian (Shamsi) date and vice versa for all versions of Android. Is there any complete and reliable library or algorithm?
Conscious
  • 1,515
  • 3
  • 16
  • 16
72
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
  • 771
  • 1
  • 6
  • 6
60
votes
9 answers

How to change Gregorian date to Persian date in JavaScript?

Can anyone help me to change Gregorian date to Persian in JavaScript? I want to use it in HTML and JavaScript.
myname
  • 739
  • 2
  • 6
  • 7
52
votes
11 answers

How to convert Persian and Arabic digits of a string to English using JavaScript?

How can I convert Persian/Arabic numbers to English numbers with a simple function? arabicNumbers = ["١", "٢", "٣", "٤", "٥", "٦", "٧", "٨", "٩", "٠"] persianNumbers = ["۱", "۲", "۳", "۴", "۵", "۶", "۷", "۸", "۹", "۰"] It is the same schema, but…
Ali.MD
  • 1,869
  • 2
  • 15
  • 23
28
votes
12 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,119
  • 8
  • 18
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,433
  • 4
  • 21
  • 36
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

how to left to right toolbar api 16

I'm using NavigationView and add toolbar with include . I use android:layoutDirection="rtl" and all apis works fine but in api 16 it doesn't work. So how can i left to right toolbar in api 16? drawer_layout.xml
Hamed Karami
  • 340
  • 1
  • 3
  • 28
9
votes
4 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
  • 107
  • 1
  • 9
8
votes
5 answers

How can I write Persian language in Android Studio?

I want to write Persian in Android Studio, but after typing Persian, Android Studio shows some strange characters. Of course it was right for about 3 months, but suddenly it's strange.
amir omidi
  • 121
  • 7
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
  • 651
  • 2
  • 7
  • 20
7
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
  • 8,806
  • 17
  • 47
  • 62
6
votes
10 answers

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

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…
Sobhan
  • 1,021
  • 2
  • 13
  • 28
6
votes
1 answer

Persian character encoding in oracle database

I have got a problem with saving Persian characters like ("ی" or "ک") into oracle database. I receive correct encoding from a client, but when I insert the related record into the database, it will be saved with Arabic encoding like this ("ي"). The…
6
votes
0 answers

How to fix ffmpeg & mencoder pushing Persian (RTL) subtitles reversed?

I'm trying to build an application to burn subtitles on videos. The specific task to do is burning Persian (Right-to-left language) subtitles. But I have a problem with it. When I got several words simuntaneously without any "Enter" between them,…
sheshkovsky
  • 1,132
  • 2
  • 15
  • 37
1
2 3
12 13