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

select_color.php popup should specify charset

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.6.4, 1.7, 1.8
    • Component/s: HTML Editor (TinyMCE)
    • Labels:
      None
    • Environment:
      non Latin1 env. (esp. ja)
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE

      Description

      lib/editor/htmlarea/popups/select_color.php does not specify its charset using a meta tag. This causes IE (and maybe other browsers) confusing character encoding in non-latin1 environment.

      A possible fix is:

      — select_color.php.orig Tue Oct 24 19:31:46 2006
      +++ select_color.php Tue Oct 24 17:43:33 2006
      @@ -1,8 +1,11 @@
      <?php
      include("../../../../config.php");
      ?>
      +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html>
      <head>
      +<meta http-equiv="content-type" content="text/html; charset=<?php print_string("thischarset");?>" />
      <title><?php print_string("selectcolor","editor");?></title>
      <style type="text/css">
      html, body

      { width: 238; height: 188; }

        Attachments

          Activity

            People

            • Assignee:
              skodak Petr Skoda
              Reporter:
              kagotani Hiroto Kagotani
              Tester:
              Nobody
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                7/Nov/06