To show or not to show french accents
francis.girard at free.fr
francis.girard at free.fr
Tue Dec 16 07:49:26 EST 2003
Good morning,
The following haskell program :
--<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
module Main where
accentLetters :: String
accentLetters = "éàô"
main :: IO ()
main = do putStr (show accentLetters)
-->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
after being compiled will give the result :
"\233\224\244"
But, exactly the same program, without the "show" function will give the result:
éàô
Is there some way to have "show" show all the printable characters, even those
represented by a value greater than the US-ASCII 7 bits (127) ?
Thank you
Francis Girard
LE CONQUET
France
More information about the Glasgow-haskell-users
mailing list