{ "id": "88114", "key": "TIMOB-8369", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2012-03-16T19:12:53.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "16162", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "89080", "key": "TIMOB-8370", "fields": { "summary": "Android: Titanium.Network.HTTPClient cannot parse Windows-1255 encoded pages", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-03-06T18:57:54.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h4. Problem Description\r\nWhen using HTTPClient to fetch Hebrew pages, the resulting string is null.\r\n\r\nh4. Actual Results\r\nResult is null, even if you got something from the webservice.\r\n\r\nh4. Expected results\r\nWorking fine.\r\n\r\nh4. Test Case\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\nvar client = Ti.Network.createHTTPClient({\r\n\tonload : function(e) {\r\n\tTi.API.info(this.responseText); // this will always output 'null'\r\n\t}\r\n});\r\nclient.open(\"GET\", 'http://rotter.net/cgi-bin/listforumf.pl');\r\nclient.send();\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Titanium.Network.HTTPClient cannot parse Windows-1255 encoded pages", "creator": { "name": "gilad@novik.ca", "key": "gilad@novik.ca", "displayName": "Gilad Novik", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gilad@novik.ca", "key": "gilad@novik.ca", "displayName": "Gilad Novik", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "186933", "author": { "name": "gilad@novik.ca", "key": "gilad@novik.ca", "displayName": "Gilad Novik", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Objective-C code will try to guess the right encoding, but windows-1255 is not available in the list.\r\n\r\ntitanium_mobile / iphone / Classes / TiNetworkHTTPClientProxy.m:\r\n{code}\r\n\t\tTRYENCODING(\"windows-1252\",12,NSWindowsCP1252StringEncoding);\r\n\t\tTRYENCODING(\"iso-8859-1\",10,NSISOLatin1StringEncoding);\r\n\t\tTRYENCODING(\"utf-8\",5,NSUTF8StringEncoding);\r\n\t\tTRYENCODING(\"shift-jis\",9,NSShiftJISStringEncoding);\r\n\t\tTRYENCODING(\"shift_jis\",9,NSShiftJISStringEncoding);\r\n\t\tTRYENCODING(\"x-euc\",5,NSJapaneseEUCStringEncoding);\r\n\t\tTRYENCODING(\"euc-jp\",6,NSJapaneseEUCStringEncoding);\r\n\t\tTRYENCODING(\"windows-1250\",12,NSWindowsCP1251StringEncoding);\r\n\t\tTRYENCODING(\"windows-1251\",12,NSWindowsCP1252StringEncoding);\r\n\t\tTRYENCODING(\"windows-1253\",12,NSWindowsCP1253StringEncoding);\r\n\t\tTRYENCODING(\"windows-1254\",12,NSWindowsCP1254StringEncoding);\r\n{code}\r\nThe following line will add Windows-1255 support:\r\n{code}\r\n\t\tTRYENCODING(\"windows-1255\",12,CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingWindowsHebrew));\r\n{code}", "updateAuthor": { "name": "gilad@novik.ca", "key": "gilad@novik.ca", "displayName": "Gilad Novik", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-16T19:14:46.000+0000", "updated": "2012-03-16T19:22:01.000+0000" }, { "id": "187610", "author": { "name": "gilad@novik.ca", "key": "gilad@novik.ca", "displayName": "Gilad Novik", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Apparently Android has a similar bug. responseText does have a value - but it was using the wrong encoding to convert, resulting in a useless string.", "updateAuthor": { "name": "gilad@novik.ca", "key": "gilad@novik.ca", "displayName": "Gilad Novik", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-20T22:13:30.000+0000", "updated": "2012-03-20T22:13:30.000+0000" }, { "id": "195516", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested with 2.0.1GA2 on the iOS simulator, issue still exists.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-21T15:00:42.000+0000", "updated": "2012-05-21T15:00:42.000+0000" }, { "id": "247910", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-17T10:10:08.000+0000", "updated": "2013-04-17T10:10:08.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }