{ "id": "63712", "key": "TIMOB-3080", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11245", "name": "Sprint 2011-10", "archived": true, "released": true, "releaseDate": "2011-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:00:51.000+0000", "created": "2011-04-15T03:36:18.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "release-1.6.1", "release-1.7.0", "reported-1.6.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T02:00:51.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": "{html}
UTF-8 characters in JavaScript get corrupted by the Android\ndeployment build scripts in Titanium.
\nTitanium SDK version: 1.6.0 (02/02/11 15:22 a02f7db...)
\nAndroid Emulator 2.2
It would help if I attached the project...
We have experienced this exact same issue today when we were\nabout to release an application just updated to 1.5.1 to QA and\n(soon) the Marketplace. This issue is critical to us. If someone\ncan point us to a place to look we will help out :)
This 3rd customer actually has a patch for the build scripts,\nprovided in the ticket:
\nWe have the same problem.
\nEncoding works on simulator an with \"Run on Device\".
\nAs soon as we compile an apk for distribution all UTF-8 Characters\nare corrupted.
This starts from version 1.5.x on.
\nAs lon as we use 1.4.x it works.
I noticed when I use the optional folder\n/platform/android/AndroidManifest.xml for a custom Manifest during\ncompilation an additional AndroidManifest.xml.gen is created under\n/build/android/. This file is not identical with the custom one.\nEspecially the header and the permissiona are different.
\nThis is a big problem for all countries using special characters\n(Germany, France, Spain etc.) as you cannot use Titanium anymore\nfor compiling apps for distribution.
\nWe would use 1.4.x but lot of code designed for 1.5-x\nwon´t work.
\nAny workarounds in sight?
Also it seems that the problem exists on OS-X and Windows 7\nlikewise.
(from [6d9b0f3e05ba71621da82c4ca98f4d5d1b250705])\nforce utf8 encoding in the js compiler, correctly deal with an\nabsolute prefix on an app:// URL for compiled JS, matching up with\nthe behavior
\nin interpreted mode [#3312 state:fixed-in-qa] [#3080\nstate:fixed-in-qa]
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/6d9b0f3e05ba...
(from [89c196d407d96d587e0c7883d6670e6523ff52c3])\nforce utf8 encoding in the js compiler, correctly deal with an\nabsolute prefix on an app:// URL for compiled JS, matching up with\nthe behavior
\nin interpreted mode [#3312 state:fixed-in-qa] [#3080\nstate:fixed-in-qa]
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/89c196d407d9...
Tested with Titanium SDK version: 1.6.1 (03/10/11 13:25\n2e8c438...) on
\nEmulator 2.1
\nSamsung Galaxy 2.2 (Tested with distribution package)
Tested with Titanium SDK version: 1.7.0 (03/11/11 12:08 86cfe14)\non
\nEmulator 2.1
\nSamsung Galaxy 2.2 (Tested with distribution package)
(from [727a5e1d7bc90e0c26ee528075f4648fe6fa14e7])\nforce utf8 encoding in the js compiler, correctly deal with an\nabsolute prefix on an app:// URL for compiled JS, matching up with\nthe behavior
\nin interpreted mode [#3312 state:fixed-in-qa] [#3080\nstate:fixed-in-qa]
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/727a5e1d7bc9...
Cherry-pick changed the state. Reversing that change.