- 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 - 13
 - 14
 - 15
 - 16
 - 17
 - 18
 - 19
 - 20
 - 21
 - 22
 - 23
 - 24
 - 25
 - 26
 - 27
 - 28
 - 29
 - 30
 - 31
 - 32
 - 33
 - 34
 - 35
 - 36
 - 37
 - 38
 
                        function unicod ($in_text) {
  $rus = "???????????????????";
  $eng = "ABE3KMHOPCTXaeopcyx";
  $output="";
  $other[1025]="?";
  $other[1105]="?";
  $other[1028]="?";
  $other[1108]="?";
  $other[1030]="I";
  $other[1110]="i";
  $other[1031]="?";
  $other[1111]="?";
  $l = strlen($rus);
  for ($i=0; $i<strlen($in_text); $i++){
    $rep=0;
    $c = substr($in_text,$i,1);
    for($j=0;$j<$l;$j++) {
      if($c == substr($rus,$j,1)) {
        $output .= substr($eng,$j,1);
        $rep=1;
        break;
      }
    }
    if(!$rep) {
      if (ord($c)>191){
        $output.="&#".(ord($c)+848).";";
      } else {
        if (array_search($c, $other)===false){
          $output.=$c;
        } else {
          $output.="&#".array_search($c, $other).";";
        }
      }
    }
  }
  return $output;
}
                                 
        
афтар тоже облажался - вот эти вопросики должны были навести на мысль, что открываемый документ несколько в другой кодировке - cp1251, а не utf8 =)
Вроде eng читается нормально. Сдаётся мне, что тут файл сразу в двух кодировках сделан.