
27 Apr
2008
27 Apr
'08
3:02 p.m.
zefria:
In GHC there's a GHC.Unicode library, but for a string such as " *AIOO", a GHC compiled program prints it as a string of unknown characters, and in the interpreter, the string evaluates to a string of escape sequences instead of displaying properly.
Is there a way to get/activate unicode support in GHC?
GHC supports unicode internally, and String and Char are all unicode. To do unicode IO however, you need to use the utf8-string package: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/utf8-string Just import and use IO functions from System.IO.UTF8, and that's it! -- Don