[Tickets #8685] Json utf8 respons object
bugs at horde.org
bugs at horde.org
Fri Nov 6 17:35:05 UTC 2009
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/8685
------------------------------------------------------------------------------
Ticket | 8685
Created By | roman at stachura.ch
Summary | Json utf8 respons object
Queue | Horde Framework Packages
Version | FRAMEWORK_3
Type | Bug
State | Unconfirmed
Priority | 2. Medium
Milestone | Horde 3.3.5
Patch |
Owners |
------------------------------------------------------------------------------
roman at stachura.ch (2009-11-06 12:35) wrote:
In Horde 3.3.5 the response object from Kronolith is using wrong charset.
If Horde API is used to Power External Sites like this one:
http://theupstairsroom.com/67
Problem:
Strings get cut off
Reason:
kronolith/lib/Driver/sql.php (line 453)
Kronolith_Event_sql turns all utf8 strings into
$GLOBALS['_HORDE_STRING_CHARSET'] = 'iso-8859-1';
Solution:
/lib/Horde/RPC/jsonrpc.php
class Horde_RPC_jsonrpc();
function getResponse($request);
Line 91
-- return Horde_Serialize::serialize($response, SERIALIZE_JSON);
++ return Horde_Serialize::serialize($response, SERIALIZE_JSON,
$GLOBALS['_HORDE_STRING_CHARSET']);
More information about the bugs
mailing list