Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-37068

question format learnwise is not utf-8 compatible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.2.7, 2.3.4, 2.4.1
    • Component/s: Questions
    • Labels:
      None
    • Testing Instructions:
      Hide

      1. Find a test Learnwise format file. (The good news is that there is one in the code at question/format/learnwise/learnwise-example.xml)

      2. Import this into the question bank. Verify that there are no errors, and that the imported questions work.

      3. Now, the original bug report was something about HTML entities, and UTF-8, so if you are feeling brave, edit the example file to add some tricky examples of those, and test the import again.

      Show
      1. Find a test Learnwise format file. (The good news is that there is one in the code at question/format/learnwise/learnwise-example.xml) 2. Import this into the question bank. Verify that there are no errors, and that the imported questions work. 3. Now, the original bug report was something about HTML entities, and UTF-8, so if you are feeling brave, edit the example file to add some tricky examples of those, and test the import again.
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Decide what is the expected encoding of learnwise files and instead of qformat_learnwise->unhtmlentities() use textlib::entities_to_utf8() after converting the strings to utf-8.

      See MDL-36212 for more information

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Jan/13