<div class="gmail_quote">2010/1/28 Bulat Ziganshin <span dir="ltr">&lt;<a href="mailto:bulat.ziganshin@gmail.com">bulat.ziganshin@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello Gunther,<br>
<div class="im"><br>
Thursday, January 28, 2010, 4:07:07 PM, you wrote:<br>
<br>
&gt; thanks for the tip, but how do I use the library?<br>
&gt; I can&#39;t really make out how to feed it UTF-16 and get String (UTF-8) back.<br>
<br>
</div>Haskell String type isn&#39;t UTF-8 encoded. it&#39;s [Char] where Char is in<br>
UCS-4 aka UTF-32 :)<br>
<div class="im"><br></div></blockquote><div><br></div><div>That&#39;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.</div>

<div><br></div><div>Cheers,</div><div>Johan</div><div><br></div></div>