{ "id": "128043", "key": "TIMOB-16673", "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": "2014-03-23T05:14:57.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "supportTeam" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" }, { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:24.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": " \r\n\r\nh5. Problem Description \r\n \r\nEmoji keyboard and utf8mb4 encoding is not working in ACS. When user tries to post smiles from IOS and store into ACS server and get back to display in Apps its not showing. \r\n\r\n\r\nh5. Testing Environment:\r\n\r\nTitanium SDK: 3.2.1.GA, 3.2.2.GA\r\n\r\nTitanium CLI: 3.2.1\r\nIOS Simulator 7.0.3\r\nDashboard\r\nAppcelerator Studio, build: 3.2.1.201402061120\r\nCloud module 3.2.1 \r\n\r\nh5. Test Code\r\n\r\n{code}\r\n var Cloud = require('ti.cloud');\r\nCloud.debug = true;\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white',\r\n\tlayout : 'vertical',\r\n});\r\n\r\nvar aTableView = Ti.UI.createTableView();\r\nlogin();\r\nfunction login() {\r\n\tCloud.Users.login({\r\n\t\tlogin : 'username',\r\n\t\tpassword : 'password'\r\n\t}, function(e) {\r\n\t\tif (e.success) {\r\n\t\t\tcurrentUser = e.users[0];\r\n\t\t\tloggedIn = true;\r\n\t\t\tloaddata();\r\n\t\t} else {\r\n\t\t\tTi.API.info('Error:\\\\n' + ((e.error && e.message) || JSON.stringify(e)));\r\n\t\t\tloggedIn = false;\r\n\t\t\tcurrentUser = null;\r\n\t\t}\r\n\t});\r\n}\r\n\r\nvar input = Ti.UI.createTextField({\r\n\theight : 35,\r\n\ttop : 10,\r\n\tleft : 40,\r\n\twidth : 240,\r\n\thintText : 'This is hint text',\r\n\tkeyboardType : Ti.UI.KEYBOARD_DEFAULT,\r\n\treturnKeyType : Ti.UI.RETURNKEY_DEFAULT,\r\n\tborderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED\r\n});\r\n\r\nwin.add(input);\r\n\r\nvar post_data = Ti.UI.createButton({\r\n\ttitle : 'Create post',\r\n\ttop : 20,\r\n});\r\n\r\nwin.add(post_data);\r\npost_data.addEventListener('click', function() {\r\n\r\n\tCloud.Posts.create({\r\n\t\ttitle : input.value,\r\n\t\tcontent : input.value,\r\n\t}, function(e) {\r\n\t\tif (e.success) {\r\n\t\t\tloaddata();\r\n\t\t} else {\r\n\t\t\talert('Error:\\n' + ((e.error && e.message) || JSON.stringify(e)));\r\n\t\t}\r\n\t});\r\n});\r\n\r\nvar load_post = Ti.UI.createButton({\r\n\ttitle : 'Load post',\r\n\ttop : 20,\r\n});\r\n\r\nload_post.addEventListener('click', function() {\r\n\tloaddata();\r\n});\r\n\r\nwin.add(load_post);\r\n\r\nwin.add(aTableView);\r\n\r\nwin.open();\r\n\r\nfunction loaddata() {\r\n\tvar data = [];\r\n\tCloud.Posts.query({\r\n\t\tpage : 1,\r\n\r\n\t}, function(e) {\r\n\t\tif (e.success) {\r\n\t\t\tTi.API.info('Success:\\n' + 'Count: ' + e.posts.length);\r\n\r\n\t\t\tfor (var i = 0; i < e.posts.length; i++) {\r\n\t\t\t\tvar post = e.posts[i];\r\n\t\t\t\tTi.API.info('post' + JSON.stringify(post));\r\n\r\n\t\t\t\tdata.push({\r\n\t\t\t\t\ttitle : post.title,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\taTableView.setData([]);\r\n\t\t\taTableView.setData(data);\r\n\t\t} else {\r\n\t\t\talert('Error:\\n' + ((e.error && e.message) || JSON.stringify(e)));\r\n\t\t}\r\n\t});\r\n}\r\n \r\n{code}\r\n\r\n\r\nh5. Step to Reproduce \r\n\r\n# Create a sample Ti Classic project from AppC Studio \r\n# Add cloud module in tiapp.xml file \r\n# Activated Appcelerator service in tiapp.xml\r\n# Add one user in dashboard.appcelerator.com (username: username and password: password)\r\n# Update app.js file with test code \r\n# Run on IOS device/simulator \r\n# Add data text field and click create post button \r\n# Check TableView list (smiles is not working )\r\n\r\n\r\nh5. Expected Result \r\nSmiles should be display in TableView properly \r\n\r\nh5. Actual Result \r\n\r\nSmiles will not display \r\n\r\nRef: http://support.appcelerator.com/tickets/APP-755425/homepage\r\n\r\nThanks \r\n\r\n\r\n", "attachment": [ { "id": "46801", "filename": "iOS Simulator Screen shot Mar 23, 2014, 11.10.58 AM.png", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2014-03-23T05:14:57.000+0000", "size": 72828, "mimeType": "image/png" } ], "flagged": false, "summary": "IOS: emoji keyboard and utf8mb4 encoding is not work with ACS", "creator": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Mac OS X 10.9.2\r\nTi SDK 3.2.2.GA\r\nTi CLI 3.2.1\r\nIOS Simulator 7.0.3\r\nDashboard \r\n", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }