Subtitle encoding/font

General discussions.

Moderator: moderators

Subtitle encoding/font

Postby pafffkata » Wed Sep 07, 2016 2:00 pm

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?
pafffkata
 
Posts: 2
Joined: Sun Sep 04, 2016 10:20 pm

Re: Subtitle encoding/font

Postby pafffkata » Fri Sep 09, 2016 9:59 am

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.
pafffkata
 
Posts: 2
Joined: Sun Sep 04, 2016 10:20 pm


Return to General

Who is online

Users browsing this forum: No registered users and 8 guests