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

Use JSON_UNESCAPED_UNICODE for the data export

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.5, 3.4.2, 3.5
    • Fix Version/s: 3.3.6, 3.4.3
    • Component/s: Privacy
    • Labels:
    • Testing Instructions:
      Hide

      Unit tests cover everything.
      Here is an example manual test:

      1. Login as admin and go to the dashboard
      2. Add an HTML block to the dashboard
      3. Set the content of the HTML block to "تست"
      4. Put the attached testfinal.php file in Moodle's root directory
      5. Run the file via CLI. It will print the path to the export directory.
      6. Go to the export directory and then go to "System > User Admin User > Block HTML" directory
      7. Open the file data.json in a text editor and confirm that the file contains "تست"
      Show
      Unit tests cover everything. Here is an example manual test: Login as admin and go to the dashboard Add an HTML block to the dashboard Set the content of the HTML block to "تست" Put the attached testfinal.php file in Moodle's root directory Run the file via CLI. It will print the path to the export directory. Go to the export directory and then go to "System > User Admin User > Block HTML" directory Open the file data.json in a text editor and confirm that the file contains "تست"
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-62060-master

      Description

      To ensure that the exported JSON file is human readable.  E.g. Persian text (متن) is currently outputted as \u0645\u062a\u0646.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rezaie9 Shamim Rezaie
              Reporter:
              sanderbangma Sander Bangma
              Peer reviewer:
              Juan Leyva
              Integrator:
              Jun Pataleta
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/May/18