14

I have problem with subtitle in Persian/Farsi using all good video players.

I have tested all reading options formats (all different area and language to read), but all did not work. I can type Farsi, but it can not show subtitle to Farsi.

1
  • What's the subtitle format? SRT? May 1, 2017 at 20:14

6 Answers 6

16

If you have VLC may be I can help you.

Go to VLC:

  1. Click Tools and next Preferences
  2. Click Subtitle & OSD
  3. In section Subtitle Language and Default encoding
  4. Select Arabic (Windows-1256)
  5. In section font select the Tahoma font
1
  • 1
    Thank you Mahdi, I use this on SMPlayer. but for last part "5", I Push the "Enable Normal Subtitles" button, Really worked, THANKS.
    – Ali
    Jun 6, 2012 at 20:59
2

This is very simple using VLC :

  1. Go to Edit Menu
  2. Click on Preferences
  3. Change encoding to Arabic(Windows-1256)
  4. Change the Font to a Persian Font (I prefer B Nazanin)

Enjoy!

1
  • 1
    i use vlc , so this is about VLC
    – HOS
    Oct 29, 2014 at 6:24
2

This is a Python3 code for converting Persian/Farsi subtitles into the ones with UTF-8 encoding.

def correctSubtitleEncoding(filename, newFilename, encoding='windows-1256'):
    with open(filename, 'r', encoding=encoding) as fr:
        with open(newFilename, 'w', encoding='utf-8') as fw:
            for line in fr:
                fw.write(line[:-1]+'\r\n')
2

Other way you may change subtites files encoding to UTF-8

I've experienced this before, and I found it's because of subtitles' font, use Subtitle Editor to edit your subtitle's font.

You can get Subtitle Editor two ways, Download from its house http://home.gna.org/subtitleeditor/ or via PPA.

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install subtitleeditor
  • Right click on subtitle → open with → Subtitle Editor
  • Then Tools → Style Editor, and there you can change your subtitle's font.
0
1

control panel>Region>Administrative(tab)> change system local> change the current system location into Persian -> it may require restart your computer and when it did everything will look the same, but you can watch Persian subtitles just fine have fun ;)

if that didn't work and your using KMplayer: right click on main screen of kmplayer and go to: Option>preferences> in the left menu of the window select "subtitle processing" and in sub menus opened hit "font style" in the right side find the "charset" and change the box beside it to "Arabic"

that must do it

1
  • Change the system locale: The system locale determines the default character set (letters, symbols, and numbers) and font used to enter and display information in programs that don't use Unicode. This allows non-Unicode programs to run on your computer using the specified language.
    – shirin
    Sep 7, 2015 at 4:33
1

It`s really simple. Go to the Text Editor program in Ubuntu or other distro and click "open". Then select the target subtitle and before clicking open in the bottom of the window you see "Character Encoding". Select "Arabic(Windows-1256)" from the list. (If it does not exist click add/remove).After opening, you will see the correct text encoding. You should just save as the file with UTF-8 encoding and enjoy it.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .