From: diml Date: Mon, 7 Apr 2008 21:11:08 +0000 (+0000) Subject: fixes utf-8 over encoding on output links X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=488770b7ac5bcdee6b90808cf767471e538a46c0;p=moodle.git fixes utf-8 over encoding on output links --- diff --git a/search/documents/resource_document.php b/search/documents/resource_document.php index 0258aa6b07..0e60706b2b 100644 --- a/search/documents/resource_document.php +++ b/search/documents/resource_document.php @@ -316,5 +316,13 @@ function resource_check_text_access($path, $itemtype, $this_id, $user, $group_id } return true; -} //resource_check_text_access +} + +/** +* post processes the url for cleaner output. +* @param string $title +*/ +function resource_link_post_processing($title){ + return mb_convert_encoding($title, 'auto', 'UTF-8'); +} ?> \ No newline at end of file