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

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

    XMLWordPrintable

    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).

        Attachments

          Activity

            People

            • Assignee:
              vf Valery Fremaux
              Reporter:
              vf Valery Fremaux
              Tester:
              Dongsheng Cai
              Participants:
              Component watchers:
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

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