changed to use utfconvert function

This commit is contained in:
moodler 2006-01-31 02:15:21 +00:00
parent 9ae17efc1c
commit 136b6ab33f
22 changed files with 286 additions and 270 deletions

View file

@ -20,9 +20,9 @@ function migrate2utf8_forum_name($recordid){
$fromenc = get_original_encoding($sitelang, $courselang, $userlang);
/// We are going to use textlib facilities
$textlib = textlib_get_instance();
/// Convert the text
$result = $textlib->convert($forum->name, $fromenc);
$result = utfconvert($forum->name, $fromenc);
$newforum = new object;
$newforum->id = $recordid;
@ -53,9 +53,9 @@ function migrate2utf8_forum_intro($recordid){
$fromenc = get_original_encoding($sitelang, $courselang, $userlang);
/// We are going to use textlib facilities
$textlib = textlib_get_instance();
/// Convert the text
$result = $textlib->convert($forum->intro, $fromenc);
$result = utfconvert($forum->intro, $fromenc);
$newforum = new object;
$newforum->id = $recordid;