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

Improve charset handling #5

Open
BjoernPetersen opened this issue Oct 20, 2020 · 0 comments
Open

Improve charset handling #5

BjoernPetersen opened this issue Oct 20, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@BjoernPetersen
Copy link
Owner

Loading m3u playlists from a file requires the file's content to be decoded using a Charset. Currently the user can specify a Charset for decoding, otherwise the parser defaults to UTF-8.

Instead of expecting the user to choose a Charset, the parser should default to the local system's default non-Unicode encoding for .m3u files and UTF-8 for .m3u8 files.

As always, we can't expect all .m3u files to follow the "convention" of using the local system's encoding, so we should detect signals of having used the wrong Charset and then fall back to UTF-8 anyway.

Users should still be able to completely override this "auto detection".

@BjoernPetersen BjoernPetersen added the enhancement New feature or request label Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant