Questions tagged [farsi]

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

247 questions
1
vote
2 answers

PHP alert message in persian language

I have a delete page, I am trying to get an alert message to popup If the delete operation was performed, Display. I want to show text message in alert box in Persian (Farsi) language, but This code is done but Persian characters do not display…
Neda
  • 57
  • 6
1
vote
1 answer

how to save an uploaded file named in persian characters with php?

I want to replace the special characters by " " it means only alphabetical and numeric characters are supported, this code worked so far! function clean($string) { return preg_replace('/[^A-Za-z0-9 ]/', ' ', $string); } but now when I try to…
Amin Jafari
  • 7,157
  • 2
  • 18
  • 43
1
vote
2 answers

How can i write farsi (persian) in android?

I'm new in android. I used PersianReshape to change textview,button and ... so they are worked But i want to write persian for example in a toast or option menu and i dont know how ? this is partial of my cod that worked for button and text view …
1
vote
2 answers

NSLocalizedString with parameters in right to left languages (like farsi)

I write this post because this problem is driving me crazy. I had same problems try to print same text(right to left like Persian) in UILabel using NSLocalizedString with parameters. My code looks like this: label.text = [NSString…
Jpicerno
  • 21
  • 3
1
vote
1 answer

Two word with the same representation in UTF-8 have different representation in ASCII

I have a Farsi word that if shown in UTF-8 coding is like this: "خطاب" I have two versions of this word, both in Notepad++ in UTF-8 are shown as above. But if I look at them in ANSI mode then I see: ïºïºŽï»„ﺧ and for the other one I…
TJ1
  • 7,578
  • 19
  • 76
  • 119
1
vote
3 answers

Creating a Java file with right-aligned strings

I am trying to write Persian text to a .txt file in Java. Because Persian (Farsi) is read from right to left, how can I write each line such that it is right aligned? I am currently using Apache's FileUtils.writeLines(), but I am open to other…
littleK
  • 19,521
  • 30
  • 128
  • 188
1
vote
1 answer

Convert unicode farsi number characters in an EditText to double in android

I'm working on an android application in persian language that gets a number from an EditText input. the problem is that I'm using a custom typeface for the EditText and when I try to get the number in it and convert it to double by using…
moghaf
  • 43
  • 1
  • 10
1
vote
1 answer

MS Word VBA to display Unicode strings

We have some VBA code in MS Word 2010 which needs to display Persian (Farsi) words dynamically; in other words, depending on which buttons the user clicks on the VBA app window, we will display a different string of Persian. The only way we…
Alex
  • 34,699
  • 13
  • 75
  • 158
1
vote
1 answer

canvas.drawtext arabic reversed

When I write arabic text in canvas by drawtext, in some device it is written correct but in others device it is revers. for example in some سلام and in other ﻢﺎﻟﺳ. I convert character by arabicReshaper to solve separate char problem in arabic form.…
1
vote
0 answers

Is Farsi language available on Android?

Possible Duplicate: How to support Arabic text in Android? I am considering localizing my Android app to Farsi (Iran) where it appears to be getting some downloads. But I am wondering if Farsi is even supported by Android handsets? IE, have…
amit
  • 1,373
  • 2
  • 16
  • 29
1
vote
1 answer

auto change keyboard language using javascript not work without IE

i have a Java Script Code that can change Keyboard Language when focus on text box. but this code just work in IE and cant work correctly in Firefox or Opera my code :