-
Notifications
You must be signed in to change notification settings - Fork 236
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
Use iconv.decodeStream
instead of iconv.decode
; Fixes #374
#375
Conversation
Thanks for the PR! IIRC a long time ago I tried using iconv's stream interface but wasn't able to for some reason. Are you sure this won't break anything? |
Also, does the test suite pass 100% on your end? |
i'd like to refactor i haven't run tests yet. |
the tests from |
i extended the tests to include euc-jp and gb18030, omitted decoding if the charset is already utf-8 and ensured the charset found in the magic charset detection is one iconv can actually handle. (more elegant code would be possible without the magic inline charset detection though) |
Beautiful. Will take a look when I have a minute. |
Use iconv.decodeStream instead of iconv.decode; Fixes #374