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

Online assignment download UTF-8 problem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.4.4, 2.5, 2.5.1
    • Assignment
    • MOODLE_24_STABLE, MOODLE_25_STABLE
    • 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.

      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.

            Unassigned Unassigned
            koen Koen Roggemans
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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