[email protected]
[Top] [All Lists]

Re: Re[2]: [Haskell-cafe] UTF-16 to UTF-8

Subject: Re: Re[2]: [Haskell-cafe] UTF-16 to UTF-8
From: Johan Tibell
Date: Thu, 28 Jan 2010 05:20:48 -0800
2010/1/28 Bulat Ziganshin <[email protected]>
Hello Gunther,

Thursday, January 28, 2010, 4:07:07 PM, you wrote:

> thanks for the tip, but how do I use the library?
> I can't really make out how to feed it UTF-16 and get String (UTF-8) back.

Haskell String type isn't UTF-8 encoded. it's [Char] where Char is in
UCS-4 aka UTF-32 :)


That's not quite correct. [Char] is a sequence of Unicode code points, UTF-32 is one possible encoding of those code points. The difference is similar to the one between an integer an e.g. its string representation.

Cheers,
Johan

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe
<Prev in Thread] Current Thread [Next in Thread>