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

Non-breaking space in a lang string after $a will not work due to PHP wiredness

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Major Major
    • None
    • 1.9.3
    • Language, Libraries
    • None
    • MOODLE_19_STABLE

      The sprintf() function used in get_string_from_file() (moodlelib.php) doesn't parse correctly all UTF-8 chars, notably multibyte ones.

      As a consequence, lang strings cannot use UTF-8 chars like the non-breaking space.

        1. test5.php
          3 kB
        2. test4.php
          1 kB
        3. test3.php
          2 kB
        4. test2.php
          2 kB
        5. test.php
          0.7 kB

            timhunt Tim Hunt
            mina Nicolas Martignoni
            Nicolas Martignoni Nicolas Martignoni
            Votes:
            11 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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