{ "id": "105594", "key": "AC-2373", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-04-06T19:34:28.000+0000", "created": "2012-11-28T00:48:16.000+0000", "labels": [ "android", "studio", "unicode", "unicodedecodeerror", "utf-8" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:24.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": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "h2. After add Ti.cloudpush module, android can't compile a production apk with UTF8 text in AndroidManifest.\r\n\r\nI have an app with a hebrew (utf8) name. When I add the push notification module, it stops compiling and throws a \"UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 336: ordinal not in range(128)\" error.\r\n\r\nh2. Test case\r\n\r\nCreate a new app, give it a UTF8 name with an AndroidManifest.xml file.\r\nAdd Ti.cloudpush module.\r\ntry to compile the app for distribution.\r\n\r\nh2. Logs\r\n\r\n{code:lang=none|title=console}\r\n[ERROR] Exception occured while building Android project:\r\n[ERROR] Traceback (most recent call last):\r\n[ERROR] File \"/Users/Shahar/Library/Application Support/Titanium/mobilesdk/osx/2.1.4.v20121030173408/android/builder.py\", line 2301, in \r\n[ERROR] s.build_and_run(True, None, key, password, alias, output_dir)\r\n[ERROR] File \"/Users/Shahar/Library/Application Support/Titanium/mobilesdk/osx/2.1.4.v20121030173408/android/builder.py\", line 2053, in build_and_run\r\n[ERROR] self.manifest_changed = self.generate_android_manifest(compiler)\r\n[ERROR] File \"/Users/Shahar/Library/Application Support/Titanium/mobilesdk/osx/2.1.4.v20121030173408/android/builder.py\", line 1250, in generate_android_manifest\r\n[ERROR] custom_manifest_contents = fill_manifest(custom_manifest_contents)\r\n[ERROR] File \"/Users/Shahar/Library/Application Support/Titanium/mobilesdk/osx/2.1.4.v20121030173408/android/builder.py\", line 1177, in fill_manifest\r\n[ERROR] manifest_source = manifest_source.replace(ti_permissions,permissions_required_xml)\r\n[ERROR] UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 336: ordinal not in range(128)\r\n{code}\r\n\r\nMy Manifest file - \r\n{code:lang=none|title=androidManifest.xml}\r\n\r\n \r\n{code}\r\n\r\nh2. Discussions\r\n\r\nhttp://developer.appcelerator.com/question/145133/after-enabling-cloud-services-i-get-unicodedecodeerror-when-compiling-for-android#comment-148283\r\nhttp://stackoverflow.com/questions/13595837/titanium-appcelerator-after-enabling-cloud-services-i-get-unicodedecodeerror-w\r\n", "attachment": [], "flagged": false, "summary": "After enabling cloud push services, Android doesn't compile throwing UnicodeDecodeError", "creator": { "name": "idevelop", "key": "idevelop", "displayName": "Shahar Zrihen", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "idevelop", "key": "idevelop", "displayName": "Shahar Zrihen", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX 10.7.5, Titanium Studio, Titanium SDK >2", "comment": { "comments": [ { "id": "231866", "author": { "name": "idevelop", "key": "idevelop", "displayName": "Shahar Zrihen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Any updates on the subject?", "updateAuthor": { "name": "idevelop", "key": "idevelop", "displayName": "Shahar Zrihen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-18T17:01:16.000+0000", "updated": "2012-12-18T17:01:16.000+0000" }, { "id": "246173", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Your AndroidManifest.xml doesn't seem complete... You don't escape the XML tags like . Can you provide your actual manifest, or one which reproduces the issue in a simple app? I added the cloudpush module, added an AndroidManifest.xml file replaced what you have between both android:label properties with hebrew. It builds for production fine with 3.0.2 GA.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-06T19:34:28.000+0000", "updated": "2013-04-06T19:34:28.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }