To show or not to show french accents

francis.girard at francis.girard at
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 :


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

More information about the Glasgow-haskell-users mailing list