[imp] PHP ERROR: json_encode(): Invalid UTF-8 sequence in argument [pid 6338 on line 242 of "/usr/share/pear/Horde/Serialize.php"]

Michael M Slusarz slusarz at horde.org
Tue Jan 14 00:50:59 UTC 2014


Quoting ANANT S ATHAVALE <asa at isac.gov.in>:

> Dear List,
>
> Getting the error written in Subject.  Enclosed is the trace.  Please
> suggest.
>
> Jan 12 2014 10:42:53 DEBUG: HORDE [imp] SQL  (0.0007s)
>         SELECT alarm_id, alarm_uid, alarm_start, alarm_end,
> alarm_methods,
>           alarm_params, alarm_title, alarm_text, alarm_snooze,
> alarm_internal
>           FROM horde_alarms WHERE alarm_dismissed = 0 AND
> ((alarm_snooze IS NULL
>           AND alarm_start <= '2014-01-12T05:12:53') OR
> alarm_snooze <=
>           '2014-01-12T05:12:53') AND (alarm_end IS NULL OR
> alarm_end >=
>           '2014-01-12T05:12:53') AND (alarm_uid IS NULL OR
> alarm_uid = '' OR
>           alarm_uid = 'smk at isac.gov.in') ORDER BY alarm_start,
> alarm_end [pid 6338 on line 319 of
> "/usr/share/pear/Horde/Db/Adapter/Mysqli.php"]
> Jan 12 2014 10:42:53 WARN: HORDE [imp] PHP ERROR: json_encode(): Invalid
> UTF-8 sequence in argument [pid 6338 on line 242 of
> "/usr/share/pear/Horde/Serialize.php"]
> 2014-01-12T10:42:53+05:30 DEBUG: HORDE 1. IMP_Ajax_Application->send()
> /var/www/horde/services/ajax.php:67
> 2. Horde_Core_Ajax_Application->send()
> /var/www/horde/imp/lib/Ajax/Application.php:125
> 3. Horde_Core_Ajax_Response->sendAndExit()
> /usr/share/pear/Horde/Core/Ajax/Application.php:237
> 4. Horde_Core_Ajax_Response_HordeCore->send()
> /usr/share/pear/Horde/Core/Ajax/Response.php:55
> 5. Horde::escapeJson()
> /usr/share/pear/Horde/Core/Ajax/Response/HordeCore.php:59
> 6. Horde_Serialize::serialize() /usr/share/pear/Horde.php:219
> 7. Horde_Serialize::_serialize() /usr/share/pear/Horde/Serialize.php:66
> 8. json_encode() /usr/share/pear/Horde/Serialize.php:242
> 9. Horde_ErrorHandler::errorHandler()

What's the issue?  There's non-UTF8 characters in the JSON received  
from the browser.  Exactly what the error says.

There's no indication/evidence provided that Horde/IMP is causing this.

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the imp mailing list