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

2010-01-28 Thread Bulat Ziganshin
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

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

2010-01-28 Thread Johan Tibell
2010/1/28 Bulat Ziganshin bulat.zigans...@gmail.com 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.

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

2007-07-26 Thread Bulat Ziganshin
Hello Alistair, Thursday, July 26, 2007, 12:29:06 PM, you wrote: Obviously a proliferation of UTF8 modules isn't great for code re-use. Is there a plan to consolidate and expose UTF8 and UTF16 de- and encoders in the libraries? afair there is utf-string module, which provides utf-8

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

2007-07-26 Thread Bulat Ziganshin
Hello Donald, Thursday, July 26, 2007, 8:13:37 AM, you wrote: I don't know if anybody cares, but... Today a wrote some trivial code to decode (not encode) UTF-16. These functions already exist in win-specific part of base: cWcharsToChars :: [CWchar] - [Char] charsToCWchars :: [Char] -