[Haskell-cafe] Strings and utf-8

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Mon Nov 26 20:29:51 EST 2007


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 at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH




More information about the Haskell-Cafe mailing list