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

Online assignment download UTF-8 problem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.4.4, 2.5, 2.5.1
    • Fix Version/s: None
    • Component/s: Assignment
    • Labels:
    • Testing Instructions:
      Hide
      1. Create an online text assignment.
      2. Log in as a student and make a submission containing non-ascii characters such as é.
      3. Log in as a teacher (or admin) and download all submissions.
      4. Check that the submission shows non-ascii characters correctly.
      Show
      Create an online text assignment. Log in as a student and make a submission containing non-ascii characters such as é. Log in as a teacher (or admin) and download all submissions. Check that the submission shows non-ascii characters correctly.
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE

      Description

      When downloading online assignments for marking, html documents are generated and zipped. These html documents don't contain character encoding directives and therefore fail to show non-ascii characters correctly.

      Example of the problem:
      Bonjour Tristesse
      Dans l'histoire, Cécile salue la tristesse.
      With generated code:
      <html><body><div class="no-overflow"><p><strong>Bonjour Tristesse</strong></p>
      <p>Dans l'histoire, Cécile salue la tristesse.

      Expected behaviour:
      Bonjour Tristesse
      Dans l'histoire, Cécile salue la tristesse.

      Proposed solution - Generate code like:
      <html><head><meta charset="UTF-8"></head><body><div class="no-overflow"><p><strong>Bonjour Tristesse</strong></p>
      <p>Dans l'histoire, Cécile salue la tristesse.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              koen Koen Roggemans
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: