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

bugs at horde.org bugs at horde.org
Mon Apr 4 13:03:36 UTC 2011


BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE  
E-MAIL-ADRESSE WERDEN NICHT GELESEN.

Ticket-URL: http://bugs.horde.org/ticket/9529
------------------------------------------------------------------------------
  Ticket           | 9529
  Aktualisiert Von | michael.groene at zel.uni-hannover.de
  Zusammenfassung  | json_encode(): Invalid UTF-8 sequence in argument
  Warteschlange    | Horde Framework Packages
  Version          | Git master
  Typ              | Bug
  Status           | Resolved
  Priorität        | 2. Medium
  Milestone        |
  Patch            |
  Zuständige       | Michael Slusarz
------------------------------------------------------------------------------


rsalmon at mbpgroup.com (2011-02-21 08:44) hat geschrieben:

> 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