[TIMOB-1323] ImageViews cannot use unicode string in the image property
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:55:52.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.4.0 |
Components | iOS |
Labels | defect, imageview, ios, iphone, unicode |
Reporter | ctredway |
Assignee | Blain Hamon |
Created | 2011-04-15T02:49:23.000+0000 |
Updated | 2011-04-17T01:55:52.000+0000 |
Description
A customer reported this on the helpdesk. When trying to use unicode characters in the image property of the imageView.
Code tried:
var win = Ti.UI.currentWindow;
var test_img = Titanium.UI.createImageView({
image:'http://www.zoomout.gr/assets/media/PICTURES/Μ;ΟΥΣΙΚΗ/651_thumb1.jpg'
}); win.add(test_img);
This error is generated:
[ERROR] Failed to load image: (null),
Error: Error Domain=ASIHTTPRequestErrorDomain Code=5 "Unable to
create request (bad url?)" UserInfo=0x7a69140
{NSLocalizedDescription=Unable to create request (bad url?)}
This happens on the iPhone, OS 4 sdk 1.3.3
Pushing to 1.5. Release is theoretically tomorrow, this will not be done in time.
(from [59e9a4e08410b0ce4d428df4c27c32032b0a0b73]) [#1323 state:resolved] Handle URL strings which might need encoding. http://github.com/appcelerator/titanium_mobile/commit/59e9a4e08410b0ce4d428df4c27c32032b0a0b73"> http://github.com/appcelerator/titanium_mobile/commit/59e9a4e08410b...
Is this still broken? I tested it and it worked.
(from [ab53b05bb6343294b784ef38e40fbc0ef47ee5ed]) [#1323 state:resolved] fix URL encoding that's still safe for other urls - added new test case fire analytics related to suspend/resume
http://github.com/appcelerator/titanium_mobile/commit/ab53b05bb6343294b784ef38e40fbc0ef47ee5ed"> http://github.com/appcelerator/titanium_mobile/commit/ab53b05bb6343...