[Haskell-cafe] I/O and utf8

Bulat Ziganshin bulatz at HotPOP.com
Thu Jan 12 07:18:43 EST 2006


Hello Einar,

Wednesday, January 11, 2006, 6:14:44 PM, you wrote:

EK> Do you plan on supporting things like HTTP where the character set
EK> is only known in the middle of the parsing?

yes, it is supported, see Examples/Encoding.hs in the
http://freearc.narod.ru/Binary.tar.gz :

 h <- openWithEncoding latin1 =<< openBinaryFile "test" ReadMode
 print =<< vGetLine h
 vSetEncoding h utf8
 print =<< vGetLine h
 vSetEncoding h latin1
 print =<< vGetLine h
 vClose h

it's not optimized currently. if you will need more speed - yell me


-- 
Best regards,
 Bulat                            mailto:bulatz at HotPOP.com





More information about the Haskell-Cafe mailing list