[Tickets #9529] json_encode(): Invalid UTF-8 sequence in argument

bugs at horde.org bugs at horde.org
Thu Jan 20 16:33:29 UTC 2011


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/9529
------------------------------------------------------------------------------
  Ticket             | 9529
  Created By         | rsalmon at mbpgroup.com
  Résumé             | json_encode(): Invalid UTF-8 sequence in argument
  Queue              | IMP
  Version            | Git master
  Type               | Bug
  État               | Unconfirmed
  Priorité           | 1. Low
  Milestone          |
  Patch              |
  Propriétaire       |
+New Attachment     | esp.eml
------------------------------------------------------------------------------


rsalmon at mbpgroup.com (2011-01-20 11:33) wrote:

using php-5.3.3, dynamic view ,the attched message does show.
I get the following errors with firebug and in horde.log :

doActionComplete
TypeError: id is null
  eval(r.js.join(';'));
dimpbase.js (ligne 1409)


2011-01-20T17:17:38+01:00 DEBUG: HORDE [imp] PHP ERROR: json_encode():  
Invalid UTF-8 sequence in argument [pid 1743 on line 252 of  
"/var/www/html/hordetest/libs/Horde/Serialize.php"]
2011-01-20T17:17:38+01:00 DEBUG: 1. Horde::sendHTTPResponse()  
/var/www/html/hordetest/services/ajax.php:73
2. Horde::escapeJson() /var/www/html/hordetest/libs/Horde.php:564
3. Horde_Serialize::serialize() /var/www/html/hordetest/libs/Horde.php:606
4. Horde_Serialize::_serialize()  
/var/www/html/hordetest/libs/Horde/Serialize.php:67
5. json_encode() /var/www/html/hordetest/libs/Horde/Serialize.php:252
6. Horde::errorHandler()

although code in Serialize.php checks  for error 5, function  
json_last_error return 0.

I tried to check for error JSON_ERROR_UTF8 (available since PHP 5.3.3  
http://www.php.net/manual/en/function.json-last-error.php) without  
success.











More information about the bugs mailing list