[HTTP] Encoding problems with Network.HTTP
Stephen Paul Weber
singpolyma at singpolyma.net
Thu Jul 19 22:15:38 BST 2012
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.
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 836 bytes
Desc: Digital signature
More information about the HTTP