[Haskell-cafe] How to "show" a utf8 string?
Roel van Dijk
vandijk.roel at gmail.com
Tue Jan 10 11:27:17 CET 2012
Have you tried using putStrLn?
Small GHCI example:
Prelude> putStrLn "\29579"
I believe the Show instances for chars and strings escape all
characters with a codepoint > 127.
2012/1/10 Magicloud Magiclouds <magicloud.magiclouds at gmail.com>:
> 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.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe