[Tickets #10925] Re: Trying harder to display broken messages

bugs at horde.org bugs at horde.org
Mon Jan 16 10:01:44 UTC 2012


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

Ticket URL: http://bugs.horde.org/ticket/10925
------------------------------------------------------------------------------
  Ticket             | 10925
  Updated By         | Jan Schneider <jan at horde.org>
  Summary            | Trying harder to display broken messages
  Queue              | IMP
  Version            | Git master
  Type               | Enhancement
  State              | New
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


Jan Schneider <jan at horde.org> (2012-01-16 11:01) wrote:

> If messages are being truncated, that sounds like an issue with PHP  
> json encoding.  IIRC, newer PHP versions do a better job of  
> recovering from bad UTF-8 input than older versions.
That was my first thought too, but if I understand the PHP changelog  
correctly, this happend in 5.3.3 and I'm on 5.3.6 which is still  
pretty recent.
Beside that, the json extension shouldn't get invalid UTF-8 at all.  
IIUC IMP/Horde_Mime assume the default charset from my preferences, if  
none is specified, like in this message. It's then supposed to convert  
from this default charset to UTF-8 before passing it to json_encode().





More information about the bugs mailing list