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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not a bug
    • Affects Version/s: 1.9.3
    • Fix Version/s: None
    • Component/s: Language, Libraries
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      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.

        Attachments

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

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              mina Nicolas Martignoni
              Tester:
              Nicolas Martignoni
              Participants:
              Component watchers:
              David Mudrák (@mudrd8mz), Helen Foster, Víctor Déniz Falcón, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              11 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: