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

Converting UTF-16 encoded files is not supported on your platform #10

Open
danielbeeke opened this issue Oct 20, 2021 · 1 comment
Open

Comments

@danielbeeke
Copy link

I am on linux.
What is needed to use it on linux?
Is it some library that is needed to do this converting? And then code to implement?

@nwoltman
Copy link
Owner

For opening files, the code currently uses the standard codecvt library. The last time I tried that code block on anything other than Windows, it just didn't work. That was probably around 2015 though so it might work now with newer versions of GCC.

If that doesn't work, then yes, some separate library would be needed to handle UTF-16 files on Linux.

Alternatively, you could probably convert the UTF-16 files to UTF-8 using something like iconv before running them through srt-vtt.

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

No branches or pull requests

2 participants