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

UTF-8 problem with some PHP functions in Moodle

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.6
    • Component/s: Administration
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_15_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE

      Description

      As I note, some functions of PHP which Moodle are using don't support UTF-8.

      I'll take an example with the glossary module. They are the functions handling strings:

      • substr ()
      • strtoupper ()

      In fact, using the functions, some Vietnamese characters could not be displayed properly (more information at http://moodle.org/mod/forum/discuss.php?d=25725)

      I dealt with the situation by replacing them by:

      • mb_substr ()
      • mb_strtoupper()

      As you know, these support UTF-8 and it worked for Vietnamese. I don’t know whether Chinese and Japanese, and other languages have the same problem.

      I think we should consider that in the future versions of Moodle so that Moodle can support completely all languages in the world.

        Attachments

          Activity

            People

            Assignee:
            poltawski Dan Poltawski
            Reporter:
            imported Imported
            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:
              20/Jun/06