Questions tagged [farsi]

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

247 questions
0
votes
1 answer

Angular Custom Attribute Directive doesn't work right

I have written an attribute directive to convert Persian and Arabic numbers to English numbers and I'm using it on many tags all throughout my forms. Problem is, sometimes it doesn't convert the last digits to English numbers. I mean, it…
Newsha Nik
  • 806
  • 2
  • 12
  • 29
0
votes
0 answers

Several fields in KivyMD doesn't support Persian/Arabic characters

I have a problem with Persian/Arabic characters in KivyMD, which in some places it seems that arabic_reshaper and bidi.algorithm are not working. this is my code: from kivymd.app import MDApp from kivymd.uix.screen import Screen from kivy.lang…
Amir_DA
  • 147
  • 1
  • 1
  • 8
0
votes
1 answer

Forced RtL in PySide2 / PyQt5

I have a QLabel with an unknown text that must be right-to-left, no matter which language is it. So I wrote this code: def add_label(self): text = self.text_input.text() # self.text_input is a QLineEdit widget = QLabel(text) …
mhn2
  • 119
  • 9
0
votes
1 answer

Highcharts axis labels cluttered but after a refresh, it'll be OK

I'm using Highcharts to create a negative-stack according to its document. My language is Persian (Farsi) so I'm using RTL direction overall the project. My problem doesn't limit to negative-stack type, but all charts with xAxis & yAxis.When I open…
0
votes
1 answer

Browser is not printing hard coded persian characters in codeigniter-3

I am trying to print URL by using below: $url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; It prints english URL fine but persian URL shows as below:
Kitty
  • 49
  • 1
  • 6
0
votes
0 answers

How to write persian characters with robotjs?

I am developing a chrome extension with nodejs. I used robotjs module to write some text in an input tag. It writes English characters well but when I want to write persian characters, it shows special character for each character in my string in…
MeirDayan
  • 620
  • 5
  • 20
0
votes
1 answer

Wrong string format when i use persian and english together in Node Js

I have a node js project with MySql database. I have to use Persian data in my DB like: UserModel = {id: 1200, firstName: 'صابر', lastName: 'سجادی' , nationalCode:'4640147800', displayName: 'saber-sajadi', status: 1, createDateTime: null };…
0
votes
0 answers

How to actually work with PHP Transliterator (Romanization) in order to convert Farsi to Finglish

I have tried everything but it does not seem to work. This code is suppose to work with any Latin Character: var_dump(transliterator_transliterate('Any-Latin; Latin-ASCII; Lower()', "A æ Übérmensch på høyeste nivå! И я люблю PHP! fi")); should…
Ali Has
  • 598
  • 1
  • 8
  • 24
0
votes
1 answer

Wrong sort order string with "ک" letter in SQL Server sort order

I have a problem with Order By in a SQL Server query and Persian language. I can't sort Persian text very well. I use NVarchar(X) type and everything is correct even select and Like queries. but when I try to sort string field I see just letter "ک"…
Reza Arani
  • 66
  • 1
  • 5
0
votes
0 answers

How to get Persian month name with library?

I use this library com.github.samanzamani.persiandate:PersianDate:0.8 I want to make a list of the Persian month name and check for existing transaction in the month. Like the code below, I want to do this using the library above private long…
0
votes
1 answer

hashbytes equivalent in mysql when working with none english text

When I am working with none-English characters the generated hash is not the same but otherwise, everything is fine. does anyone have a solution to get the same result? MYSQL SELECT MD5( 'سلام') ------------- result:…
Hooman Nemati
  • 97
  • 1
  • 7
0
votes
0 answers

How do I replace Persian Unicode characters with what is shown?

I'm working on a project which was Arabic before but I'm trying to add Persian characters (like گ چ پ ژ ) to it. So I Imported Persian Characters to it but instead of showing new Characters in their appropriate form like ـگـ in باشگاه (U+FB95) it…
0
votes
1 answer

Add The Persian language

I want to use Mapbox with the Persian language. I searched in the MapBox API Documentation And I didn't find anything. What do I have to do?
0
votes
0 answers

Birt : specific Persian font is not applied to excel report output(problem with a specific Persian font for reports with excel output)

I have a Persian font and apply it to my Birt reports. the PDF outputs are perfect but in the excel outputs the font does not being applied to the content. In the Home-->Font part of excel, it is shown that the font is what I want but the content of…
0
votes
0 answers

How to type Persian in Python compiler

When I try to type Persian in Python, I get this: Please help.
Nima Gh
  • 31
  • 5