diff --git a/cis/testtool/frage.php b/cis/testtool/frage.php index ee88abbe9..fa3d5a121 100644 --- a/cis/testtool/frage.php +++ b/cis/testtool/frage.php @@ -433,9 +433,9 @@ if($frage->frage_id!='') echo '
'; if($vorschlag->bild!='') - echo "
"; + echo "
"; if($vorschlag->audio!='') - echo '
'; + echo '
'; if($vorschlag->text!='') echo $vorschlag->text.'
'; echo ""; diff --git a/system/TesttoolCleanEncoding.php b/system/TesttoolCleanEncoding.php new file mode 100644 index 000000000..cd6957dba --- /dev/null +++ b/system/TesttoolCleanEncoding.php @@ -0,0 +1,30 @@ + + + +TesttoolCleanEncoding + + + +db_query('BEGIN;'); + +$qry = "UPDATE testtool.tbl_frage_sprache SET text=convert_from(convert_to(text,'LATIN9'),'UTF8'); + UPDATE testtool.tbl_vorschlag_sprache SET text=convert_from(convert_to(text,'LATIN9'),'UTF8') WHERE text<>'' and text is not null AND strpos(text,'ß')=0;"; +if($db->db_query($qry)) + echo "Aktualiserung erfolgreich"; +else + echo "Fehler beim Aktualisieren:".$db->db_last_error(); +?> + + \ No newline at end of file