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

Use JSON_UNESCAPED_UNICODE for the data export

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.3.5, 3.4.2, 3.5
    • 3.3.6, 3.4.3
    • Privacy
    • MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • MOODLE_33_STABLE, MOODLE_34_STABLE
    • MDL-62060-master
    • 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 "تست"

    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

              rezaie9 Shamim Rezaie
              sanderbangma Sander Bangma
              Juan Leyva Juan Leyva
              Jun Pataleta Jun Pataleta
              CiBoT CiBoT
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/May/18