
26 Nov
2007
26 Nov
'07
8:29 p.m.
On Nov 26, 2007, at 19:23 , MaurĂ cio wrote:
Are 'String's in GHC 6.6.1 UTF-8?
No. type String = [Char] and Char stores Unicode codepoints. However, the IO system truncates them to 8 bits. I think there are UTF8 marshaling libraries on hackage these days, though. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH