[Haskell-cafe] How to "show" a utf8 string?

Felipe Almeida Lessa felipe.lessa at gmail.com
Tue Jan 10 11:47:31 CET 2012


On Tue, Jan 10, 2012 at 7:55 AM, Magicloud Magiclouds
<magicloud.magiclouds at gmail.com> wrote:
> Hi,
>  I am using LDAP hackage to do some ldap searching. I am not sure if
> this is its problem. All Chinese chars returned like "\29579".
>  How to convert it to the actual Chinese char? I thought it was my
> terminal's fault, so tried to use System.IO.UTF8 to put the result
> into a file and viewed by firefox, no luck.

Are you using "print"?  Did you try "putStrLn"?

Cheers, =)

-- 
Felipe.



More information about the Haskell-Cafe mailing list