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

Unable to restore legacy Hebrew course_files from Moodle 1.9 backups (filename encoding issues)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.4, 2.5
    • Fix Version/s: None
    • Component/s: Backup, Files API
    • Labels:
      None
    • Workaround:
      Hide

      Set the restoring user's profile language to "English" and then restore the 1.9.x backup file into Moodle 2.x (You might also would like to set the current course language to English, in case user's language is ignored)

      Another workaround:
      Set local (Hebrew in my case) language "oldcharset" and "localewincharset" string tokens in "langconfig.php" to "UTF-8",

      Show
      Set the restoring user's profile language to "English" and then restore the 1.9.x backup file into Moodle 2.x (You might also would like to set the current course language to English, in case user's language is ignored) Another workaround: Set local (Hebrew in my case) language "oldcharset" and "localewincharset" string tokens in "langconfig.php" to "UTF-8",
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE

      Description

      When linux servers (CentOS 5.x) with PHP 5.3 create Moodle 1.9 backup files using ZIP, Hebrew filenames and folder names are saved within the Zip file with ISO-8859-8 encoding. Zip does not support UTF-8.

      Extracting a Moodle 1.9 backup zip file results in file names displayed as "?????????.doc"
      And restoring them into Moodle 2+ legacy course_files results in file names displayed as "╫¬╫ץ╫¿╫¬_╫פ╫פ╫ע╫פ.doc"
      English filenames restore correctly.

      I am attaching a Moodle 1.9 backup file for testing

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                skodak Petr Skoda
                Reporter:
                nadavkav Nadav Kavalerchik
                Participants:
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias, Matteo Scaramuccia, Jake Dallimore, Jun Pataleta, Ryan Wyllie
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: