<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>Le 26 mars 06 à 13:02, Allan Odgaard a écrit :</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">You can’t tell whether a file is in MacRoman, cp-1252/iso-8859-1, or iso-8859-15.</FONT></P></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>i thought their are char codes in Mac Roman not used in cp1252 and else ...<BR><BLOCKQUOTE type="cite"> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">The approach I use is frequency analysis, but that’s based on my assumption of which characters would be the more frequently used characters.</FONT></P> </BLOCKQUOTE><BR></DIV><DIV>then it is based upon the langage rather the string itself ?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>best,</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Yvon</DIV><BR></BODY></HTML>