mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Fixed a problem with altered chars in UTF-8
This commit is contained in:
parent
f32e4767c4
commit
644b5629ff
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user