[Haskell-cafe] Re: String vs ByteString

Colin Paul Adams colin at colina.demon.co.uk
Tue Aug 17 08:53:21 EDT 2010

>>>>> "Johan" == Johan Tibell <johan.tibell at gmail.com> writes:

    Johan> On Tue, Aug 17, 2010 at 1:36 PM, Tako Schotanus <tako at codejive.org> wrote:
    Johan>     Yeah, I tried looking it up but I could find the
    Johan> technical definition for Char, but in the end I found that
    Johan> "maxBound" was "0x10FFFF" making it basically 24 bits :)

    Johan> I think that's enough to represent all the assigned Unicode
    Johan> code points. I also think the Unicode consortium (or whatever
    Johan> it is called) made some statement about the maximum number of
    Johan> bits they'll ever use.

Yes. And UTF-16 is only capable of dealing with codepoints up to this limit.
Colin Adams
Preston Lancashire
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

More information about the Haskell-Cafe mailing list