From 238395a91d642a0bd1ad5524c69fb4fbfc209b51 Mon Sep 17 00:00:00 2001 From: David M Date: Thu, 29 Nov 2007 18:26:20 +0000 Subject: #15524 git-svn-id: file:///svn/phpbb/trunk@8257 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/search/fulltext_mysql.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'phpBB/includes/search') diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php index 91d70d074e..1cd28fc6d2 100644 --- a/phpBB/includes/search/fulltext_mysql.php +++ b/phpBB/includes/search/fulltext_mysql.php @@ -54,6 +54,7 @@ class fulltext_mysql extends search_backend if (function_exists('mb_ereg')) { $this->mbstring_regex = true; + mb_regex_encoding('UTF-8'); } $error = false; @@ -152,7 +153,6 @@ class fulltext_mysql extends search_backend } else if ($this->mbstring_regex) { - mb_regex_encoding('UTF-8'); mb_ereg_search_init($split_keywords, '(?:[^\w*"()]|^)([+\-|]?(?:[\w*"()]+\'?)*[\w*"()])(?:[^\w*"()]|$)'); while (($word = mb_ereg_search_regs())) @@ -285,7 +285,6 @@ class fulltext_mysql extends search_backend } else if ($this->mbstring_regex) { - mb_regex_encoding('UTF-8'); mb_ereg_search_init($text, '(?:[^\w*]|^)([+\-|]?(?:[\w*]+\'?)*[\w*])(?:[^\w*]|$)'); $text = array(); -- cgit v1.2.1