mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 04:11:49 +02:00
fixed wrong charset in xajax responses
This commit is contained in:
parent
293145ae00
commit
0c38cbea43
@ -45,7 +45,9 @@ class xajaxResponse
|
|||||||
// Constructor
|
// Constructor
|
||||||
function xajaxResponse()
|
function xajaxResponse()
|
||||||
{
|
{
|
||||||
$this->xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
|
$this->charset = is_object($GLOBALS['egw']->translation) ? $GLOBALS['egw']->translation->charset() : 'UTF-8';
|
||||||
|
//error_log("xajaxResponse: charset=$this->charset");
|
||||||
|
$this->xml = "<?xml version=\"1.0\" encoding=\"$this->charset\"?>";
|
||||||
$this->xml .= "<xajax>";
|
$this->xml .= "<xajax>";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -439,7 +441,7 @@ class xajax
|
|||||||
$sResponse = call_user_func_array($sFunctionName, $aArgs);
|
$sResponse = call_user_func_array($sFunctionName, $aArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
header("Content-type: text/xml; charset=utf-8");
|
header("Content-type: text/xml; charset=$this->charset");
|
||||||
print $sResponse;
|
print $sResponse;
|
||||||
|
|
||||||
exit();
|
exit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user