video.js icon indicating copy to clipboard operation
video.js copied to clipboard

Special Characters on Subtitles not working.

Open gadelhas opened this issue 12 years ago • 5 comments

Hey, I'm using special characters on my subtitles and they are not showing up correctly.

It shows me that symbom with a question mark inside it, the HTML headers are already set to UTF8 etc.

Is it a bug? or my fault?

gadelhas avatar Jan 17 '14 23:01 gadelhas

Looks like this is indeed a bug. Would you mind providing a WebVTT file just so we can have it for reference?

mmcc avatar Jan 20 '14 22:01 mmcc

I'm using .srt files. http://www.opensubtitles.org/pt/subtitles/5496813/csi-miami-cyber-lebrity-pt You can get the one I'm using here. The first sub is a special character one..

gadelhas avatar Jan 21 '14 20:01 gadelhas

Maybe that's why? webvtt files are expected and it's trying to read an srt file as a webvtt file.

gkatsev avatar Jan 21 '14 22:01 gkatsev

this is what i did ... open the files in notepad and in save as select encoding utf-8. Hope it helps edit: the file format is still srt. worked for me

akitrav avatar Jan 22 '14 15:01 akitrav

@gkatsev No that's not the problem, webvtt and srt are read in the same way.

@akitrav Thanks for the solution. it worked. I forgot about that thing eheh

It just needs to encode the files with utf-8. It's simple.

gadelhas avatar Jan 22 '14 16:01 gadelhas