On Fri, 2009-02-13 at 08:33 +0100, Krzysztof Skrzętnicki wrote:
> On Fri, Feb 13, 2009 at 08:06, Magicloud <[email protected]> 
> 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
> is.)

Gtk2Hs displays Haskell Strings correctly. Haskell Strings are Unicode.
So all you need to do is decode utf8 into a proper Haskell String.

Duncan

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to