mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
changed to use utfconvert function
This commit is contained in:
parent
9ae17efc1c
commit
136b6ab33f
22 changed files with 286 additions and 270 deletions
|
@ -31,9 +31,9 @@ function migrate2utf8_choice_options_text($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($choiceoption->text, $fromenc);
|
||||
$result = utfconvert($choiceoption->text, $fromenc);
|
||||
|
||||
$newchoiceoption = new object;
|
||||
$newchoiceoption->id = $recordid;
|
||||
|
@ -63,9 +63,9 @@ function migrate2utf8_choice_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($choice->name, $fromenc);
|
||||
$result = utfconvert($choice->name, $fromenc);
|
||||
|
||||
$newchoice = new object;
|
||||
$newchoice->id = $recordid;
|
||||
|
@ -95,9 +95,9 @@ function migrate2utf8_choice_text($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($choice->text, $fromenc);
|
||||
$result = utfconvert($choice->text, $fromenc);
|
||||
|
||||
$newchoice = new object;
|
||||
$newchoice->id = $recordid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue