LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Unicode on debian Squeeze (https://www.linuxquestions.org/questions/linux-software-2/unicode-on-debian-squeeze-773547/)

nima0102 12-04-2009 05:00 PM

Unicode on debian Squeeze
 
Hi
Thanks for sharing your experiences
I have installed Debian Squeeze, but when I want play movie with persian subtitle on VLC or Mplayer, the characters are not correctly appeared!!
I do not know about solving this issue.

Thanks for any help or guidance

neonsignal 12-05-2009 07:33 AM

Check that the font being used by the player is one that has the unicode characters that you require.

In VLC, you can find the font under:
VLCSettings->Preferences->Video->Subtitles/OSD->Text_Renderer

In mplayer, you can use the '-font' and '-subfont' options to specify the subtitle font.

AwesomeMachine 12-05-2009 08:02 AM

For MPlayer you can install the font you wish to use. I think you put it in ~/.mplayer/font/

nima0102 12-06-2009 06:06 AM

Thanks
Excuse me for my fault
Apparently coding that *.srt files is windows-cp1252, when I coding of mplayer or smplayer or vlc set to "windows-cp1252" the characters is correctly displayed but all characters separately one by one are displayed for example "سلام" is showed "س" "ل" "ا" "م" .
I do not know about this problem!!

neonsignal 12-06-2009 08:16 AM

Quote:

Apparently coding that *.srt files is windows-cp1252
Perhaps it is windows-cp1256 (Arabic/Persian). Anyway, it is an 8 bit encoding. You can convert to unicode using the following:

Code:

iconv -f CP1256 -t UTF-8 input.srt -o output.srt
However, that might not solve the problem where the rendering by the player does not join the letter forms.

On my system the version of libfribidi that is being used by vlc and mplayer to render the Arabic/Persian shows the isolated forms. I gather that version 2 may perform better, but I have not tried it.


All times are GMT -5. The time now is 11:12 AM.