diff options
author | chris <chris@jalakai.co.uk> | 2006-08-31 02:34:13 +0200 |
---|---|---|
committer | chris <chris@jalakai.co.uk> | 2006-08-31 02:34:13 +0200 |
commit | 9ee93076cf04a466d2e9620bc3efe538d93e5983 (patch) | |
tree | b488c990f3745e4125c1799a7520f7f55a045f7d /inc/utf8.php | |
parent | bc3e97becac1d4920baa2ff042cdd886e1080056 (diff) | |
download | rpg-9ee93076cf04a466d2e9620bc3efe538d93e5983.tar.gz rpg-9ee93076cf04a466d2e9620bc3efe538d93e5983.tar.bz2 |
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
Diffstat (limited to 'inc/utf8.php')
-rw-r--r-- | inc/utf8.php | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |