{ "id": "86769", "key": "TIMOB-7743", "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": [ { "id": "12096", "description": "", "name": "Sprint 2012-04", "archived": true, "released": true, "releaseDate": "2012-02-26" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-05T04:52:30.000+0000", "created": "2012-02-21T16:08:10.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_app_properties", "qe-testadded" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-05T16:06:29.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": "When using encodeURIComponent, the return value from Android's Uri.encode seems to be good while debugging, but the JS return value that gets printed doesn't seem to be correct. It seems there is an error in the binding layer somewhere..\r\n\r\nCode:\r\n{code}\r\nTi.API.debug(encodeURIComponent(\"üöäß &?/ tes tetst et st e\\ntest etes te stet\"));\r\n{code}\r\n\r\nLog:\r\n{code}\r\n02-21 18:07:37.930: D/TiAPI(22633): 1.817237E+132FBFBD1.104170E-317FBFBD1.811392E+132FBFBD2.164448E-312FBFBD %26 F F 5.034598e-308s 3.022026e+132tst 3.321918e+133t t 5.585349e-308Atest 5.034598e-308tes 1.301351e+132YC�8��:��:Q��&�&!`�&嚿&���&嚿&嚿&tet\r\n{code}\r\n\r\nExpected Value:\r\n{code}\r\n%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%20%26%3F%2F%20tes%20tetst%20et%20st%20e%0Atest%20etes%20te%20stet\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: encodeURIComponent returns odd String", "creator": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "184063", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Testing code\r\n{code}\r\nvar code = encodeURIComponent(\"üöäß &?/ tes tetst et st e\\ntest etes te stet\");\r\nTi.API.debug(\"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\");\r\nTi.API.trace(\"\" + code);\r\nTi.API.debug(\"\" + code);\r\nTi.API.info(\"\" + code);\r\nTi.API.notice(\"\" + code);\r\nTi.API.warn(\"\" + code);\r\nTi.API.error(\"\" + code);\r\nTi.API.critical(\"\" + code);\r\nTi.API.fatal(\"\" + code);\r\nTi.API.debug(\"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\");\r\n{code}\r\nRun the above code. The expected output is\r\n{code}\r\nD/TiAPI ( 1085): <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\r\nV/TiAPI ( 1085): %C3%BC%C3%B6%C3%A4%C3%9F%20%26%3F%2F%20tes%20tetst%20et%20st%20e%0Atest%20etes%20te%20stet\r\nD/TiAPI ( 1085): %C3%BC%C3%B6%C3%A4%C3%9F%20%26%3F%2F%20tes%20tetst%20et%20st%20e%0Atest%20etes%20te%20stet\r\nI/TiAPI ( 1085): %C3%BC%C3%B6%C3%A4%C3%9F%20%26%3F%2F%20tes%20tetst%20et%20st%20e%0Atest%20etes%20te%20stet\r\nI/TiAPI ( 1085): %C3%BC%C3%B6%C3%A4%C3%9F%20%26%3F%2F%20tes%20tetst%20et%20st%20e%0Atest%20etes%20te%20stet\r\nW/TiAPI ( 1085): %C3%BC%C3%B6%C3%A4%C3%9F%20%26%3F%2F%20tes%20tetst%20et%20st%20e%0Atest%20etes%20te%20stet\r\nE/TiAPI ( 1085): %C3%BC%C3%B6%C3%A4%C3%9F%20%26%3F%2F%20tes%20tetst%20et%20st%20e%0Atest%20etes%20te%20stet\r\nE/TiAPI ( 1085): %C3%BC%C3%B6%C3%A4%C3%9F%20%26%3F%2F%20tes%20tetst%20et%20st%20e%0Atest%20etes%20te%20stet\r\nE/TiAPI ( 1085): %C3%BC%C3%B6%C3%A4%C3%9F%20%26%3F%2F%20tes%20tetst%20et%20st%20e%0Atest%20etes%20te%20stet\r\nD/TiAPI ( 1085): <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\r\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-23T10:19:03.000+0000", "updated": "2012-02-23T10:19:03.000+0000" }, { "id": "186861", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.0.v20120316124800\r\nRuntime: v8, rhino\r\nTitanium Studio, build: 2.0.0.201203152033\r\nDevice: Nexus S (2.3.6)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-16T13:20:59.000+0000", "updated": "2012-03-16T13:20:59.000+0000" }, { "id": "201543", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Reopening to update labels.", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-07-05T04:51:25.000+0000", "updated": "2012-07-05T04:51:25.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }