The Persian tag is for issues relating to Persian (Farsi) language.
Questions tagged [persian]
325 questions
6
votes
1 answer
how to change highstock date to persian date
I'm using highcharts. I'm trying to change its date to Persian but since it is using Date.UTC I can not change it!
I've seen the http://api.highcharts.com/highstock#lang but it seems that it doesn't support persian.
Do you know any way to change it…

bahar_Agi
- 644
- 4
- 17
- 29
6
votes
1 answer
Add a Jalali month to a Jalali Date
I have a date in Jalali (Persian system of Date) which I need to be forwarded 1 month. The problem is that when I add 1 month using myDateTime.AddMonths(1) my date forwards by 1 Gregorian month, whereas I want a Jalali month.
For example if my Date…

Mahdi Tahsildari
- 13,065
- 14
- 55
- 94
6
votes
7 answers
Hindi or Farsi numbers in django templating engine
I want to print {{forloop.counter}} with persian or Hindi encoding means to have "۱ ۲ ۳ ۴ .." instead of "1 2 3 4 ...". I searched a lot but I couldn't find any related functions. Would you mind helping me?
Regards

Amin Fazli
- 152
- 7
6
votes
2 answers
Persian numbers in SQL Server 2005
I'm trying to add some persian text to my SQL Server 2005 database.
There is no problem with letters, but persian numbers (۱،۲،۳،...) are converted to ?...
For example, if I add this text (سلام ۱۲۳۴) to database, there will be (سلام ؟؟؟؟) in…

Mahdi Ghiasi
- 14,873
- 19
- 71
- 119
6
votes
1 answer
emacs font for western and Other like rtl
In office like libreOffice we have two type font in style, western font and CTL font.
all English font use western font and other things like persian and arabic font use CTL font.
in emacs 24 i want western text use this settings
'(default ((t…

Mohammad Efazati
- 4,812
- 2
- 35
- 50
6
votes
5 answers
How algorithm of strtotime(PHP Date function) Works?
i wanna to know how strtotime (php Date function) work?
how Parse string Like "15 September 2012" to timeStamp
is there any better algorithm?
my purpose is changing this function for Persian Language

Hamid Reza Salimian
- 932
- 9
- 13
5
votes
3 answers
PHP json_encode() function and Persian language
I'm converting a website database to Joomla's K2 component database.
in K2 there is a extra_fields columns that user can create custom fields, similar as Drupal's CCK. So I used this feature to keep item's source in a field.
{"id":"7",…

Farid Rn
- 3,167
- 5
- 39
- 66
5
votes
1 answer
Zend Search Lucene And Persian Language !
i have the following code in my zf project :
$index = Zend_Search_Lucene::open(APPLICATION_PATH . '/cache/search_index');
$doc = new Zend_Search_Lucene_Document();
$title = "سلام سینا xxx sad";
…

Sina Miandashti
- 2,087
- 1
- 26
- 40
5
votes
2 answers
Converting a dictionary to json having persian characters
Here is some code of mine, I'm trying to convert a dictionary to json having Persian characters but I get question marks instead of characters. My dictionary looks like this:
bycommunity("0": [{"60357": "این یک پیام است"}] )
with open('data.json',…

Farnaz Daneshvar
- 101
- 1
- 6
5
votes
1 answer
PostgreSQL: Does PostgreSQL support Persian Calendar?
Oracle support Persian Calendar but need to know does PostgreSQL support Persian Calendar?
If yes, then how can we set default calendar type as Persian instead of Gregorian in PostgreSQL(In Oracle we can use NLS_CALENDAR to set default…

Tejeshvi Roy
- 146
- 6
5
votes
1 answer
wrong converting from gregorian to persian calendar in some days
I want to use PHP's IntlDateFormater to use persian calendar in my code.
This days PHP has built-in functions witch supoorts persian calendar and works fine but I have a problem with certain days.
for example using this code all dates converts from…

mehdi jalilvand
- 450
- 4
- 12
5
votes
2 answers
How can I create a custom font service for Persian language
Hi
There are very limited Persian fonts for the websites, I need to know if there is a way to have custom fonts loaded in websites ?
There are some font replacement services but I dont know if they work with RTL languages like Persian or not
Also I…

datisdesign
- 3,165
- 8
- 30
- 29
5
votes
1 answer
How to normalize Persian texts with Hazm
I have a folder containing some other folders and each contains a lot of text files. I have to extract 5 words before and after a specific word and following code works fine.
The problem is that because I did not normalize the texts, it just returns…

sara
- 129
- 2
- 9
5
votes
3 answers
I Can't Find dompdf_config.inc.php or dompdf_config.custom.inc.php for setting "DOMPDF_UNICODE_ENABLED" true
I use dompdf to save a html page as pdf by php. I use Persian characters in my html page (actually php page) but when i'm trying to save it as pdf, the export just looked like '?????' :( .I have searched all the net and I found a configuration for…

HosSeinM
- 301
- 1
- 6
- 14
5
votes
2 answers
Writing persian ( farsi ) by class wfstream in output file
How can I write Persian text like "خلیج فارس" to a file using a std::wfstream?
I tried following code but it does not work.
#include
#include
#include
int main()
{
std::wfstream f("D:\\test.txt", std::ios::out);
…

SaeidMo7
- 1,214
- 15
- 22