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

html-conduit errors with decoding umlauts #65

Open
gbwey opened this issue Nov 10, 2015 · 1 comment
Open

html-conduit errors with decoding umlauts #65

gbwey opened this issue Nov 10, 2015 · 1 comment

Comments

@gbwey
Copy link

gbwey commented Nov 10, 2015

I am trying to read a file with an 'a' umlaut (\228) and it is failing with this error:

*** Exception: Error parsing XML file tstfile.txt: Data.Conduit.Text.decode: Error decoding str
eam of UTF-8 bytes. Error encountered in stream at offset 5. Encountered at byte sequence "\228
\223ga"

There does not appear to be any parseText option unlike in xml-conduit.
Does it make sense to provide the user the ability to supply a decoder (eg Latin1) and/or a parseText option?
Or is there another way to get this to work.

Thanks,
Grant

@snoyberg
Copy link
Owner

I don't see any inherent objection to a parseText option, a PR would be welcome.

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