<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
I all.<BR>
&nbsp;<BR>
I'm reading a txt file using the code <BR>
&nbsp;<BR>
inh &lt;- openFile&nbsp;"myfile.txt" ReadMode<BR>
contents &lt;- hGetContents inh<BR>
&nbsp;<BR>
On Windows all works fine. I'm able to read the file without any problems.<BR>
On Mac OS X (10.6.4), with the same txt file and the same code above, I get the exception:<BR>
&nbsp;<BR>
hGetContents: invalid argument (Illegal byte sequence).<BR>
&nbsp;<BR>
In both the systems (Mac and Windows) I've installed the same Haskell platform 2010.2.0.0 (GHC 6.12.3).<BR>
&nbsp;<BR>
Any idea why I've this behaviour on Mac system?<BR>
&nbsp;<BR>
Thanks in advance for any answer.<BR>
&nbsp;<BR>
Luca.<BR>                                               </body>
</html>