Fixed a problem with altered chars in UTF-8

This commit is contained in:
bobopinna 2005-07-03 07:14:20 +00:00
parent f32e4767c4
commit 644b5629ff

View File

@ -579,6 +579,9 @@ function scorm_startElement($parser, $name, $attrs) {
function scorm_endElement($parser, $name) {
global $scoes,$i,$level,$datacontent,$manifest,$organization,$version;
$datacontent = trim($datacontent);
if ($name == 'ITEM') {
$level--;
}
@ -618,11 +621,12 @@ function scorm_endElement($parser, $name) {
$version = 'SCORM_1.2';
}
}
}
$datacontent = '';
}
function scorm_characterData($parser, $data) {
global $datacontent;
$datacontent = utf8_decode($data);
$datacontent .= utf8_decode($data);
}
function scorm_parse($pkgdir,$pkgtype,$scormid){