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

Encoded characters when reading utf16 #184

Open
scolobey opened this issue Nov 5, 2020 · 0 comments
Open

Encoded characters when reading utf16 #184

scolobey opened this issue Nov 5, 2020 · 0 comments

Comments

@scolobey
Copy link

scolobey commented Nov 5, 2020

  • Operating System: macOs Mojave 10.4.6
  • Node Version: 12.10.0
  • NPM Version: 6.11.3
  • csv-parser Version: 2.3.3

Expected Behavior

Output decoded text when reading utf16

Actual Behavior

Outputs encoded characters when reading utf16

How Do We Reproduce?

Referencing test/fixtures/bench/utf16.csv
If you attempt to process this file, the result is an object containing encoded characters, while test/fixtures/bench/utf8.csv returns decoded characters.

Is it intentional for data to be returned in different forms like this?
My ideal solution would be to identify and decode utf16. But a blurb in the readme to explain this or how to handle it would work.

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