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

How to handle content with encoding UTF-16 with BOM present? #413

Open
PikachuEXE opened this issue Dec 9, 2019 · 0 comments
Open

How to handle content with encoding UTF-16 with BOM present? #413

PikachuEXE opened this issue Dec 9, 2019 · 0 comments

Comments

@PikachuEXE
Copy link

I am using this library to download remote text files
Some of them contains content with UTF-16LE (instead of usual UTF-8) with BOM (\xff\xfe)
And directly handling the downloaded content would causes error reported in
https://bugs.ruby-lang.org/issues/16402

Is there a way in this library to handle the encoding/BOM issue properly?
(Without resorting to write to temp file and read again with different mode)

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

1 participant