{ "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>
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
\nIf I change the description field to ascii only, it works\nfine.
\nTitanium Developer 1.2.1
\nMobile SDK 1.4
\nMac OS X
\nXcode 3.2.3
\niOS SDK 4.0.2
There are also UnicodeErrors, if the name field contains unicode\ncharacters like German umlauts:
\n\n<name>Sprachführer Deutsch-Englisch</name>
\n
\nSteps to reproduce
\nResult
\nOutput 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
\nNo 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
#33\nwas marked resolved but seems to be occurring in 1.4.X
(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...
Will push to 1_4_X when fix confirmed. Note that this issue may\npersist for android and modules.
Doesn't affect Android build process; does appear to affect\nmodules. Seems to be related to how we create xcode projects.
iPod 4th gen (4.1), 3rd gen 4.0.2 with mobile sdk build\n1.5.0.62c1cae