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

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 2.4, 2.5
    • Backup, Files API
    • None
    • MOODLE_24_STABLE, MOODLE_25_STABLE
    • 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",

      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

            skodak Petr Skoda
            nadavkav Nadav Kavalerchik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.