[Haskell-cafe] I/O and utf8

John Meacham john at repetae.net
Mon Jan 9 18:08:44 EST 2006

On Sun, Jan 08, 2006 at 11:26:05AM +0000, Andreas Kägi wrote:
> hello
> i want to read a file encoded in utf8 and at a later time output portions of it
> on the console. Is there an easy way to do this in haskell? using the standard
> i/o functions i can read the file but the output gives me \1071 ... instead of
> the unicode characters. 

Jhc does all of its IO in utf8. CharIO is a drop in replacement for the
standard prelude routines which converts everything to and from UTF8



John Meacham - ⑆repetae.net⑆john⑈ 

More information about the Haskell-Cafe mailing list