[Haskell-cafe] UTF-16 to UTF-8
bulat.ziganshin at gmail.com
Thu Jan 28 08:16:33 EST 2010
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 :)
> BTW: I need this function because I'm using HDBC-ODBC with MS Access and
> in MS Access apparently every string is in UTF-16.
look at withTString and its friends:
> Am 28.01.10 12:47, schrieb Ivan Lazar Miljenovic:
>> Gunther Schmidt<gue.schmidt at web.de> writes:
>>> is there a library which converts from utf-16 to utf-8?
>> The text library can (you can also choose between big and little endian
>>> Haskell-Cafe mailing list
>>> Haskell-Cafe at haskell.org
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe