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

bugs at horde.org bugs at horde.org
Mon Feb 21 06:09:20 UTC 2011


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

Ticket URL: http://bugs.horde.org/h/whups/ticket/9529
------------------------------------------------------------------------------
  Ticket             | 9529
  Updated By         | Michael Slusarz <slusarz at horde.org>
  Summary            | json_encode(): Invalid UTF-8 sequence in argument
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Bug
  State              | Resolved
  Priority           | 2. Medium
  Milestone          |
  Patch              |
-Owners             | Horde Developers, Michael Slusarz
+Owners             | Michael Slusarz
------------------------------------------------------------------------------


Michael Slusarz <slusarz at horde.org> (2011-02-21 06:09) wrote:

Not much we can do about that message.  It is bad UTF-8 and  
json_encode() chokes on it.

Unfortunately, json_last_error() doesn't help out because of this  
issue: http://bugs.php.net/bug.php?id=54058

However, even in this case if json_last_error() worked properly, it  
doesn't solve because forcing a charset conversion to UTF-8 doesn't  
work either.

Solution: provide error message in preview pane with link to popup  
message (which is loaded via straight HTML so it is not subject to  
JSON encoding problems).






More information about the bugs mailing list