[Haskell-beginners] HXT: encoding problem

Elias Diem lists at webconect.ch
Tue Sep 30 07:23:45 UTC 2014


Hi Jedaï

On 2014-09-29,  Chaddaï Fouché wrote:

> readString is documented as not doing any decoding, so you're dependent on
> your readFile doing it right for you, but that depends on your locale !
> You could set your IO system input encoding yourself to avoid the problem
> but it seems simpler to use "readDocument" provided by Hxt instead since
> that'll read the file with your specified input encoding.

I use readDocument now as sugested and it works. Thanks for 
the explanation.

Thanks to the others too!

-- 
Greetings
Elias




More information about the Beginners mailing list