[Haskell-cafe] UTF-8 BOM

Albert Y. C. Lai trebla at vex.net
Wed Jan 5 03:55:08 CET 2011


On 11-01-04 08:08 PM, Tony Morris wrote:
> I am reading files with System.IO.readFile. Some of these files start
> with a UTF-8 Byte Order Marker (0xef 0xbb 0xbf).

There is System.IO.utf8_bom for that. Of course, then you can't use 
readFile; but you can use openFile and hGetContents.



More information about the Haskell-Cafe mailing list