Moodle
  1. Moodle
  2. MDL-33710

moodle created zip files are not utf-8 compatible

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.4, 2.1, 2.2, 2.3
    • Fix Version/s: 2.4
    • Component/s: General
    • Labels:
    • Testing Instructions:
      Hide

      1/ run phpunit tests
      2/ try extracting the attached file
      3/ try downloading of all assignment from old advanced upload assignment module - make sure some students have names with utf-8 chars in them
      4/ try zipping in file manager (I hope we have this functionality somewhere)
      5/ finally run course backup/restore - this is probably the most important use of zipping/unzipping in moodle

      Show
      1/ run phpunit tests 2/ try extracting the attached file 3/ try downloading of all assignment from old advanced upload assignment module - make sure some students have names with utf-8 chars in them 4/ try zipping in file manager (I hope we have this functionality somewhere) 5/ finally run course backup/restore - this is probably the most important use of zipping/unzipping in moodle
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w28_MDL-33710_m24_utfzip
    • Rank:
      41716

      Description

      Potential solution is to use bit 11 in general file header fields. The problem is that we can not tweak the PHP zip extension itself, luckily the general flag is not checksummed and the zip_archive should allow postprocessing in close() methods.

      This issue is not for extracting of zip files created in other systems.

      the ZIP structure is described at http://www.pkware.com/documents/casestudies/APPNOTE.TXT

        Issue Links

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: