BetterVideoPlayer icon indicating copy to clipboard operation
BetterVideoPlayer copied to clipboard

Subtitles Decoding for languages like Arabic or Greek

Open tonywamba opened this issue 8 years ago • 3 comments

-- [ ] I have verified there are no duplicate active or recent bugs, questions, or requests -- [ ] I have verified that I am using the latest version of Better Video Player. -- [ ] I have given my issue a non-generic title. -- [ ] I have read over the documentation (before asking questions on how to do something).

Hi, How can I correctly display subtitles for language like Arabic, Greek or even French.Arabic for instance is being displayed as seen on the attached image. screenshot_2017-08-09-23-35-15

tonywamba avatar Aug 10 '17 09:08 tonywamba

Subtitles use Html.fromHtml() method to apply subtitle styling if there is any. That method is now deprecated and I'm not sure whether it messes up with UTF-8 encoding which is the default encoding. In the next release, we should add setEncoding and use something more appropriate for styling.

halilozercan avatar Aug 10 '17 10:08 halilozercan

Thanks for the explanation. Yes I was actually thinking about something like that. Subtitles we download from services like OpenSubtitles comes with a value specifying the encoding. So passing that value to BVP will be easy and will solve this issue. Looking forward to seeing this feature in the next release.

tonywamba avatar Aug 10 '17 10:08 tonywamba

Amazing

nohqq avatar Aug 29 '17 23:08 nohqq