Moodle

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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).

Activity

Hide
Valery Fremaux added a comment -

As told in bug report.

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

Close, thanks

Show
Dongsheng Cai added a comment - Close, thanks

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: