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

Windows Filenames in zip files disappear or turn to gibberish when unzipped in the Moodle bases on Linux

    Details

    • Testing Instructions:
      Hide

      1/ if you understand Chinese switch to zh_cn and unzip the attached 16.zip in Moodle
      2/ alternatively open some filepicker and upload the 16.zip file, switch to other browser tab and select to zh_cn there, then switch back and extract the file (the point is to keep filepicker UI in English, but the ajax call in Chinese)

      Show
      1/ if you understand Chinese switch to zh_cn and unzip the attached 16.zip in Moodle 2/ alternatively open some filepicker and upload the 16.zip file, switch to other browser tab and select to zh_cn there, then switch back and extract the file (the point is to keep filepicker UI in English, but the ajax call in Chinese)
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w04_MDL-37407_m25_chineseunzip

      Description

      Unzip a .zip file, which is created under Microsoft Windows, the double-byte character filename will disapper or turn to gibberish! See the screehshots.
      This issue MDL-33068 has not fixed the problem.
      More information:
      Both of the files in the zip, and the zip file are created under MS Windows 7.
      The Moodle 2.4 is base on CentOS


      The problem was that attached file is not compatible with unicode and Moodle did not contain yet the necessary heuristics to detect encoding from Chinese selected as current language in Moodle.

        Gliffy Diagrams

          Attachments

          1. 16.zip
            0.3 kB
          2. a.zip
            43 kB
          3. fixed_unzip.png
            fixed_unzip.png
            38 kB
          4. screenshot-1.jpg
            screenshot-1.jpg
            39 kB
          5. screenshot-2.jpg
            screenshot-2.jpg
            29 kB

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    11/Mar/13