Anonymous | Login | Signup for a new account | 12-22-2024 04:14 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0002092 | [Quercus] | minor | sometimes | 10-19-07 09:07 | 09-04-08 16:57 | ||||
Reporter | hendler | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 3.1.3 | ||||||
Summary | 0002092: json_encode (or another part of the Resin system) should return UTF-8 - maybe | ||||||||
Description |
http://php.net/json_decode [^] requires UTF-8 - it seems. To reproduce - have a 5.2.1 regular PHP as a json_decode client. Do a json_encode from quercus containing UTF-8 chars. The json_decode will return false (see notes - it may be the Zend HTTP client that does this.) |
||||||||
Additional Information |
My workaround is to do this in the PHP environment, where $response->getBody() is from Zend Framework HTTP client (which I'm sorry to say may actually be the problem - but I thought I'd post it here in case it comes up again). This converts the string to UTF-8. ... $response_converted = (function_exists('iconv'))? iconv("ISO-8859-1","UTF-8", $response->getBody()):$response->getBody(); return json_decode($response_converted,true); |
||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |