[Tickets #9529] Re: json_encode(): Invalid UTF-8 sequence in argument
bugs at horde.org
bugs at horde.org
Mon Feb 21 08:44:17 UTC 2011
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://dev.horde.org/h/whups/ticket/9529
------------------------------------------------------------------------------
Ticket | 9529
Updated By | rsalmon at mbpgroup.com
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 | Michael Slusarz
------------------------------------------------------------------------------
rsalmon at mbpgroup.com (2011-02-21 08:44) 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).
Thank you for this intermediate solution.
More information about the bugs
mailing list