Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: convert non-latin characters in IE #157

Merged
merged 2 commits into from
Jul 17, 2018

Conversation

forbesjo
Copy link
Contributor

@forbesjo forbesjo commented Jul 17, 2018

Description

Fixes videojs/video.js#5070

Specific Changes proposed

Fixes the fallback text decoder. (https://stackoverflow.com/a/17192845)

Requirements Checklist

  • Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
    • Unit Tests updated or fixed
  • Reviewed by Two Core Contributors

@forbesjo forbesjo mentioned this pull request Jul 17, 2018
4 tasks
@@ -0,0 +1,2 @@
export const uintToString = (uintArray) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor, but this function is doing a bit more than just converting the typed array to a string. We may want to either rename the function or just call decodeURIComponent and escape within vtt-segment-loader.

import QUnit from 'qunit';
import { uintToString } from '../../src/util/string';

QUnit.module('uintToString');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor, but may want a blank line here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Japanese subtitle is broken in IE 11
2 participants