[Haskell-cafe] Re: String vs ByteString

Tako Schotanus tako at codejive.org
Tue Aug 17 07:03:20 EDT 2010


On Tue, Aug 17, 2010 at 12:54, Ivan Lazar Miljenovic <
ivan.miljenovic at gmail.com> wrote:

> Tom Harper <rtomharper at gmail.com> writes:
>
> > 2010/8/17 Bulat Ziganshin <bulat.ziganshin at gmail.com>:
> >> Hello Tom,
> >
> > <snip>
> >
> >> i don't understand what you mean. are you support all 2^20 codepoints
> >> in Data.Text package?
> >
> > Bulat,
> >
> > Yes, its internal representation is UTF-16, which is capable of
> > encoding *any* valid Unicode codepoint.
>
> Just like Char is capable of encoding any valid Unicode codepoint.
>
>
Unless a Char in Haskell is 32 bits (or at least more than 16 bits) it con
NOT encode all Unicode points.

-Tako
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100817/88b0db10/attachment.html


More information about the Haskell-Cafe mailing list