{ "id": "92869", "key": "TIMOB-9411", "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": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-06-06T10:02:38.000+0000", "created": "2012-06-06T03:45:06.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-and060112", "regression" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "17685", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "90905", "key": "TIMOB-8906", "fields": { "summary": "Android: createHttpClient cannot determine the charset encoding by html meta tag", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-10T19:13:53.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "It is a regression.This does not occur on 2.0.2 ,2.0.1 and 1.8.2.\r\nTitanium.Network.createHttpClient is returning null value if the encoding style of page is Shift-JIS or EUC-JP.It works fine for utf-8 encoding.\r\n\r\n{code}\r\nvar win1 = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n});\r\nvar text = Ti.UI.createLabel({\r\n text: '',\r\n});\r\nwin1.add(text);\r\nwin1.open();\r\ncharsetTest(\"http://kangaechu.com/utf8.html\");\r\ncharsetTest(\"http://kangaechu.com/shiftjis.html\");\r\ncharsetTest(\"http://kangaechu.com/eucjp.html\");\r\n \r\nfunction charsetTest(url){\r\n var xhr = Ti.Network.createHTTPClient();\r\n \r\n xhr.onload = function() {\r\n if(this.status == 200) {\r\n var html = this.responseText;\r\n if(html == null){\r\n text.text = text.text + url + ' is null.\\n\\n';\r\n }\r\n else if(html.match(/([\\s\\S]*)<\\/body>/)){\r\n var body = RegExp.$1;\r\n text.text = text.text + url + body;\r\n }else{\r\n text.text = text.text + url + ' is 200, but no body element.\\n\\n';\r\n }\r\n }else{\r\n text.text = text.text + url + ' status code is ' + this.status + '\\n\\n';\r\n }\r\n };\r\n xhr.onerror = function() {\r\n text.text = text.text + url + ' status code is ' + this.status + '\\n\\n';\r\n \r\n };\r\n xhr.open(\"GET\", url, false);\r\n xhr.send();\r\n \r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "Android:Network:createHttpClient cannot handle Japanese Shift_JIS and EUC-JP encoding", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Titanium SDK: 2.1.0.v20120605190238\r\nTested with Titanium Studio: 2.1.0.201206041625\r\nDevice: Android 2.2 , Android 4.0\r\nAndroid Runtime: V8\r\nMachine OS: Windows 7", "comment": { "comments": [ { "id": "411301", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-10T19:13:53.000+0000", "updated": "2017-03-10T19:13:53.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }