Sunday, October 28, 2018

accessibility - How do I encode WebVTT document as UTF-8 and MIME type="text/vtt"?




"A WebVTT file must consist of a WebVTT file body encoded as UTF-8 and labeled with the MIME type text/vtt."
whatwg source: http://www.whatwg.org/specs/web-apps/current-work/webvtt.html



i figure i need to set .htaccess? i'm on apache/php/mysql.


Answer



Replace AddDefaultCharset ISO-8859-1 with AddDefaultCharset UTF-8 in the Apache.conf file.



If using .htaccess for configuration use something similar to:





AddType "text/html; charset=UTF-8" html


No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...