[TIMOB-33] Via Tender: Unicode error with tiapp.xml
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:50:10.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Backlog |
Components | iOS |
Labels | n/a |
Reporter | Jeff Haynie |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:22:44.000+0000 |
Updated | 2012-10-02T03:10:25.000+0000 |
Description
Assigned to http://support.appcelerator.net/discussions/support/60-unicode-error-with-tiappxml"> Tender issue #60. As reported in Tender:
My app fails to build when I include a Unicode character in tiapp.xml.
Here's a fragment of my XML:
<window> <id>suite</id> <icon>suite_button.png</icon> <title>Have2…</title>
The word "Have2" is followed by the Unicode ellipsis character. The build error is
Traceback (most recent call last): File "/Library/Application Support/Titanium/mobilesdk/osx/0.4.2/iphone/builder.py", line 309, in main(sys.argv) File "/Library/Application Support/Titanium/mobilesdk/osx/0.4.2/iphone/builder.py", line 166, in main add_plist(os.path.join(iphone_dir,'Resources')) File "/Library/Application Support/Titanium/mobilesdk/osx/0.4.2/iphone/builder.py", line 140, in add_plist ti = TiAppXML(tiapp_xml) File "/Library/Application Support/Titanium/mobilesdk/osx/0.4.2/iphone/../tiapp.py", line 64, in __init__ wp = get_window_properties(window) File "/Library/Application Support/Titanium/mobilesdk/osx/0.4.2/iphone/../tiapp.py", line 35, in get_window_properties wp[w.nodeName]=getText(w.childNodes) File "/Library/Application Support/Titanium/mobilesdk/osx/0.4.2/iphone/../tiapp.py", line 13, in getText return str(rc) UnicodeEncodeError: 'ascii' codec can't encode character u'…' in position 5: ordinal not in range(128)
The problem was worked around by changing the ellipsis to three periods.
this should be fixed in 0.8, need to retest this specific case
The bug is in SDK 1.4 still recent!