--- wct_qti_lib.php 2006-06-26 06:29:32.000000000 -0400 +++ wct_qti_lib.php 2008-04-04 16:31:12.000000000 -0400 @@ -56,19 +56,31 @@ // Load the file into memory $filedata = convertWctEquations(implode('', file($file))); - + + // Convert to UTF-8 + $encoding = extractQtiXmlEnconding($filedata); + $logpage .= "\n

Detected questionDB.xml encoding: $encoding

"; + $filedata = iconv($encoding,"UTF-8",$filedata); + // Split it into sections $sects = extractQtiSections($filedata); $numqsadded = 0;