{ "id": "62254", "key": "TIMOB-1622", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:56:41.000+0000", "created": "2011-04-15T02:57:36.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "defect", "ios", "iphone", "rplist", "tiapp", "unicode" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:56:41.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

My iphone app fails to build when I include Unicode characters\nin the project description field. This is the content of the\ntiapp.xml:

\n

<description>Deutsche Grammatik einfach, kompakt und\nübersichtlich</description>

\n

If I performing a full rebuild (empty the build/iphone folder),\nI get this error in build.log:

\n
\nException detected in script:\nTraceback (most recent call last):\n  File \"/Library/Application Support/Titanium/mobilesdk/osx/1.4.0/iphone/builder.py\", line 612, in main\n    compiler = Compiler(project_dir,appid,name,deploytype,xcode_build,devicefamily,iphone_version,True)\n  File \"/Library/Application Support/Titanium/mobilesdk/osx/1.4.0/iphone/compiler.py\", line 152, in __init__\n    main_file.write(main_template)\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\xfc' in position 638: ordinal not in range(128)\n
\n

If I change the description field to ascii only, it works\nfine.

\n

Titanium Developer 1.2.1
\nMobile SDK 1.4
\nMac OS X
\nXcode 3.2.3
\niOS SDK 4.0.2

{html}", "attachment": [], "flagged": false, "summary": "UnicodeEncodeError on build", "creator": { "name": "netspy", "key": "netspy", "displayName": "netspy", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "netspy", "key": "netspy", "displayName": "netspy", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126207", "author": { "name": "netspy", "key": "netspy", "displayName": "netspy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

There are also UnicodeErrors, if the name field contains unicode\ncharacters like German umlauts:

\n
\n<name>Sprachführer Deutsch-Englisch</name>\n
\n

Steps to reproduce

\n
    \n
  1. Create new mobile Project
  2. \n
  3. Give project name: „Sprachführer\nDeutsch-Englisch“
  4. \n
  5. Run project in iPhone emulator
  6. \n
\n

Result

\n

Output in Titanium console is:

\n
\n[INFO] Compiling JavaScript...one moment\n[INFO] No JavaScript errors detected.\n[INFO] One moment, building ...\n[INFO] Titanium SDK version: 1.4\n[INFO] iPhone Device family: iphone\n[INFO] iPhone SDK version: 4.0\n
\n

No emulator starts. In build.log there is this error:

\n
\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\xfc' in position 638: ordinal not in range(128)\n
{html}", "updateAuthor": { "name": "netspy", "key": "netspy", "displayName": "netspy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:57:37.000+0000", "updated": "2011-04-15T02:57:37.000+0000" }, { "id": "126208", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

#33\nwas marked resolved but seems to be occurring in 1.4.X

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:57:38.000+0000", "updated": "2011-04-15T02:57:38.000+0000" }, { "id": "126209", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [ac324fd512d02b2d766742b8a0704b39514c2983])\n[#1622 state:fixed-in-qa] Titanium build system\nnow supports project names and information containing UTF-8\nunicode. \nhttp://github.com/appcelerator/titanium_mobile/commit/ac324fd512d02...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:57:39.000+0000", "updated": "2011-04-15T02:57:39.000+0000" }, { "id": "126210", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Will push to 1_4_X when fix confirmed. Note that this issue may\npersist for android and modules.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:57:39.000+0000", "updated": "2011-04-15T02:57:39.000+0000" }, { "id": "126211", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Doesn't affect Android build process; does appear to affect\nmodules. Seems to be related to how we create xcode projects.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:57:39.000+0000", "updated": "2011-04-15T02:57:39.000+0000" }, { "id": "126212", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

iPod 4th gen (4.1), 3rd gen 4.0.2 with mobile sdk build\n1.5.0.62c1cae

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:57:39.000+0000", "updated": "2011-04-15T02:57:39.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }