[Haskell-beginners] Encoding strings
aditya siram
aditya.siram at gmail.com
Wed Apr 7 16:49:10 EDT 2010
This is because of Unicode strings. You need to import
"Codec.Binary.UTF8.String" and use:
decodeString :: String -> String
and
encodeString :: String -> String
hth,
deech
On 4/7/10, legajid <legajid at free.fr> wrote:
> Hi,
>
> i experiment problems writing files.
> Reading an access 97 database and displaying data in a wxhaskell grid,
> everything is correct.
> When i write data in a text file, some characters are translated : "é"
> becomes \233.
>
> How to correct this ?
> I looked for hSetEncoding but didn't find it in System.IO, nor in
> GHC.IO.Handle that doesn't exist on my system.
> I tried hSetBinaryMode, without success.
>
> If this helps, I run ghc 6.10.4 on windows XP.
>
> Thanks for an idea,
> Didier.
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
More information about the Beginners
mailing list