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

UTF8 bad encoding in result lines of the global search engine.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.5, 1.9
    • Fix Version/s: 1.8.6, 1.9.1
    • Component/s: Global search
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      In some languages which use extensively UTF8 encoding for extra chars, results of the search give lines that are abusively double encoded in UTF8, resulting in bad display of those titles.

      This is resolved in using the xxxxxxxx_link_post_processing($title) callback in each document so title can be backcoded properly to UTF8 by :

      mb_convert_encoding($title, 'UTF-8', 'auto');

      (as a default processing).

        Gliffy Diagrams

          Activity

          Hide
          vf Valery Fremaux added a comment -

          As told in bug report.

          Show
          vf Valery Fremaux added a comment - As told in bug report.
          Hide
          dongsheng Dongsheng Cai added a comment -

          Close, thanks

          Show
          dongsheng Dongsheng Cai added a comment - Close, thanks

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/May/08