[Haskell-cafe] Curl & UTF8

Rickard Karlsson rickard.karlsson at gmail.com
Thu Apr 22 18:36:07 EDT 2010


Hi,
I'm trying to download a file in UTF-8 with libcurl(1.3.5) and GHC 6.12:

>import Network.Curl

>u = "http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt"
>main = curlGetString u [] >>= putStrLn . snd

Which doesn't print the characters correctly. If i read the file from local
storage with getFile it is displayed properly.


More information about the Haskell-Cafe mailing list