[HTTP] Encoding problems with Network.HTTP

Ganesh Sittampalam ganesh at earth.li
Fri Aug 31 22:59:41 BST 2012


Hi Stephen,

On 19/07/2012 22:15, Stephen Paul Weber wrote:
> I was using Network.HTTP today for some scraping work (along with
> HandsomeSoup) and it seems that the library seems from the outside at a
> glance to support giving the body as a String, but on closer inspection
> any non-ASCII data in the data gets mangled into the String.
> 
> Probably should look at Content-Type and do encoding properly to String
> or Text using encoding/iconv/text-icu or else not support broken String
> results and just use ByteString.

Thanks for the report and sorry for the delay in replying.

I can't see an obvious quick fix so I've opened an issue on github to
track this: https://github.com/haskell/HTTP/issues/28

Please feel free to comment there to discuss this further.

Cheers,

Ganesh

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 367 bytes
Desc: OpenPGP digital signature
URL: <http://projects.haskell.org/pipermail/http/attachments/20120831/c1ca8c3f/attachment.pgp>


More information about the HTTP mailing list