Page 1 of 1

Subtitle encoding/font

PostPosted: Wed Sep 07, 2016 2:00 pm
by pafffkata
Hello,

recently I found out I can use subtitles in subsonic playing videos.
Unfortunately more recently I am having problems with the following:
my native language uses the cyrillic alphabet and while there are some subtitles showing up, they are, unfortunately, not displayed correctly and I cannot figure out why.
The file that I am trying to use as a subtitles is a .srt file with the same name as the .mkv file, encoded in UTF-8, but the result I am getting is this:
Image

Is this a probable encoding issue or is this an issue with the fonts used by flowplayer not being able to print out cyrillic symbols?

Re: Subtitle encoding/font

PostPosted: Fri Sep 09, 2016 9:59 am
by pafffkata
I found the solution to the problem described in the previous post.
Before converting the srt file from CP1251 to UTF8 I had to put the following
echo -ne '\xEF\xBB\xBF' > subtitle.srt

Then
iconv -f CP1251 -t UTF-8 subtitleCP1251.srt >> subtitle.srt
Afterwards the subtitles were readable.