[Haskell-cafe] How to deal with utf-8?

Krzysztof Skrzętnicki gtener at gmail.com
Fri Feb 13 02:33:09 EST 2009

On Fri, Feb 13, 2009 at 08:06, Magicloud <magicloud.magiclouds at gmail.com> wrote:
> Hi,
>   I am using Text.CSV to read and using gtk2hs to display csv files using
> utf-8 encode. Well, it displays broken strings, seems like it cannot deal
> with utf-8.
>   What should I do?

You should try using functions from utf8-string package (find it on
Hackage) to read UTF-8 encoded data.
That's about reading data in. I'm not so sure however about the gtk2hs
part. Experts should tell you if it is possible or not. (I think it

All best

Christopher Skrzętnicki

P.S. I think beginners at haskell.org is a better place to ask such questions.

More information about the Haskell-Cafe mailing list