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 :) > 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: http://hamaoka.org/ghc6/libraries/Win32/src/System-Win32-Types.html > Am 28.01.10 12:47, schrieb Ivan Lazar Miljenovic: >> Gunther Schmidt<[email protected]> 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 >> UTF-16). >> >> >>> Gunther >>> >>> >>> _______________________________________________ >>> Haskell-Cafe mailing list >>> [email protected] >>> http://www.haskell.org/mailman/listinfo/haskell-cafe >>> >> > _______________________________________________ > Haskell-Cafe mailing list > [email protected] > http://www.haskell.org/mailman/listinfo/haskell-cafe -- Best regards, Bulat mailto:[email protected] _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
