Haskell: output non-ascii characters
I want to output non-ascii characters in WinGHCi, but this is what I get:
Prelude> "δ" "\948" Prelude> putStr "\948" *** Exception: <stdout>: hPutChar: invalid argument (character is not in the code page) I am using WinGHCi 7.0.3 for windows xp. What do I need to make WinGHCi print a beautiful little delta?
Powered by OSX!
Prelude> putStrLn "\948" δ This seems to be a windows problem that has nothing to do with haskell ...
This is a WinGHCI error. Use GHCI (console, version without GUI).
UPD : this, apparently, is not entirely correct (works for me with Greek letters, and not with Cyrillic).