[Haskell-cafe] Strings and utf-8

Don Stewart dons at galois.com
Mon Nov 26 20:34:11 EST 2007


allbery:
> 
> 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.

Yep, utf8string, in particular.

-- Don


More information about the Haskell-Cafe mailing list