From 9ee93076cf04a466d2e9620bc3efe538d93e5983 Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 31 Aug 2006 02:34:13 +0200 Subject: search improvements ft_snippet() - make utf8 algorithm default - add workaround for utf8_substr() limitations, bug #891 - fix some indexes which missed out on conversion to utf8 character counts - minor improvements idx_lookup() - minor changes to wildcard matching code to improve performance (changes based on profiling results) utf8 - specifically set mb_internal_coding to utf-8 when mb_string functions will be used. darcs-hash:20060831003413-9b6ab-712021eda3c959ffe79d8d3fe91d2c9a8acf2b58.gz --- inc/utf8.php | 1 + 1 file changed, 1 insertion(+) (limited to 'inc/utf8.php') diff --git a/inc/utf8.php b/inc/utf8.php index aa9594c42..dbf09b6fc 100644 --- a/inc/utf8.php +++ b/inc/utf8.php @@ -13,6 +13,7 @@ if(!defined('UTF8_MBSTRING')){ if(function_exists('mb_substr') && !defined('UTF8_NOMBSTRING')){ define('UTF8_MBSTRING',1); + mb_internal_encoding('UTF-8'); }else{ define('UTF8_MBSTRING',0); } -- cgit v1.2.3