[Haskell-cafe] How to use Unicode strings?

Dmitri O.Kondratiev dokondr at gmail.com
Sat Nov 22 06:40:41 EST 2008


Please advise how to write Unicode string, so this example would work:

main = do
  putStrLn "Les signes orthographiques inclus les accents (aigus, grâve,
circonflexe), le tréma, l'apostrophe, la cédille, le trait d'union et la
majuscule."

I get the following error:
hello.hs:4:68:
    lexical error in string/character literal (UTF-8 decoding error)
Failed, modules loaded: none.
Prelude>

Also, how to read Unicode characters from standard input?

Thanks!

-- 
Dmitri O. Kondratiev
dokondr at gmail.com
http://www.geocities.com/dkondr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20081122/f736e390/attachment.htm


More information about the Haskell-Cafe mailing list