From bf3de43044c13194116c5e538b6dae75c242586b Mon Sep 17 00:00:00 2001 From: Sergey Kartashoff Date: Sat, 29 Sep 2001 14:09:42 +0000 Subject: [PATCH] Search frontend example has been updated. --- ext/mnogosearch/index.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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] != '') { -- 2.50.1