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

When using Safari, Download the file has multibyte character filename from mod_resource the filename will be broken.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.2
    • Fix Version/s: None
    • Component/s: Resource
    • Labels:
      None
    • Affected Branches:
      MOODLE_39_STABLE

      Description

      The browser uses Safari.

      1. Add Resource to the course.
      2. Upload the file with the Japanese file name.(ex."あいうえお.pdf")
      3. Click the "Save and return to course" button.
      4. Right-click on the Resource link on the course and select "Download Linked File".
      5. A file with broken file name will be downloaded.

      It can be improved by specifying "UTF-8" in the send_file function of lib/filelig.php.

       header('Content-Disposition: inline; filename*=UTF-8"'.$filename.'"');
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            yamazaki shinji
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: