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

    XMLWordPrintable

Details

    • MOODLE_23_STABLE, MOODLE_24_STABLE
    • MOODLE_24_STABLE
    • w04_MDL-37407_m25_chineseunzip
    • 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)

    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.

      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

              skodak Petr Skoda
              xaero xaero
              Sam Hemelryk Sam Hemelryk
              Andrew Davis Andrew Davis
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Mar/13