summaryrefslogtreecommitdiff
path: root/ext/mnogosearch
diff options
context:
space:
mode:
authorSergey Kartashoff <gluke@php.net>2001-09-29 14:09:42 +0000
committerSergey Kartashoff <gluke@php.net>2001-09-29 14:09:42 +0000
commitbf3de43044c13194116c5e538b6dae75c242586b (patch)
treef190c3a62def14653bfe6b9baa07f1ac6055e346 /ext/mnogosearch
parent2d914287324d7c5871303244624555eab7073df5 (diff)
downloadphp-git-bf3de43044c13194116c5e538b6dae75c242586b.tar.gz
Search frontend example has been updated.
Diffstat (limited to 'ext/mnogosearch')
-rw-r--r--ext/mnogosearch/index.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/mnogosearch/index.php b/ext/mnogosearch/index.php
index 62ae4b4f7e..e88931b0f8 100644
--- a/ext/mnogosearch/index.php
+++ b/ext/mnogosearch/index.php
@@ -544,6 +544,17 @@ function make_nav($query_orig){
if ($localcharset != '') {
Udm_Set_Agent_Param($udm_agent,UDM_PARAM_CHARSET,$localcharset);
}
+
+ if (Udm_Api_Version() >= 30200) {
+ if ($localcharset == '') Udm_Set_Agent_Param($udm_agent,UDM_PARAM_CHARSET,'utf-8');
+ if ($browsercharset != '') {
+ Udm_Set_Agent_Param($udm_agent,UDM_PARAM_BROWSER_CHARSET,$browsercharset);
+ Header ("Content-Type: text/html; charset=$browsercharset"); ?>
+ } else {
+ Udm_Set_Agent_Param($udm_agent,UDM_PARAM_BROWSER_CHARSET,'utf-8');
+ Header ("Content-Type: text/html; charset=utf-8"); ?>
+ }
+ }
for ($i=0; $i < count($stopwordtable_arr); $i++) {
if ($stopwordtable_arr[$i] != '') {