Opened 4 years ago
Closed 4 years ago
#1486356 closed Bugs (fixed)
#3170 problem: json_encode(): Invalid UTF-8 sequence in argument
| Reported by: | ural | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.4-beta |
| Component: | Core functionality | Version: | git-master |
| Severity: | normal | Keywords: | json_encode 3170 |
| Cc: |
Description
PHP Warning: json_encode(): Invalid UTF-8 sequence in argument in rcube_json_output.php on line 258
Message is attached. Click on the message to preview it (or open it), click on the triangle to open headers... Browser hangs with "Loading..." message.
Problem is browser dependent:
Chrome 3.0.195.33 - hangs
IE8 - works
FF3.5.5 - hangs
Opera 10.10 - hangs
Attachments (1)
Change History (4)
Changed 4 years ago by ural
comment:1 Changed 4 years ago by alec
- Milestone set to 0.4-beta
comment:2 Changed 4 years ago by ural
Commenting 29: if ($browser->ie) in headers.inc fixed the problem. Browser Chrome 3.0.195.33, PHP 5.3.1.
Line 461 in func.inc had no effect.
Do we have to clean all utf8 ? Errors appear only on 2 emails, both are spam.
comment:3 Changed 4 years ago by alec
- Resolution set to fixed
- Status changed from new to closed
Fixed in [2717f9f6].
Note: See
TracTickets for help on using
tickets.

No problem here. FF 3.0.15, Opera 10.10, PHP 5.2.11/5.2.4, but headers are truncated on non-unicode char. Try to comment line 461 in steps/mail/func.inc and line 29 in headers.inc.