Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1323] ImageViews cannot use unicode string in the image property

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:52.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsiOS
Labelsdefect, imageview, ios, iphone, unicode
Reporterctredway
AssigneeBlain Hamon
Created2011-04-15T02:49:23.000+0000
Updated2011-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

Comments

  1. Stephen Tramer 2011-04-15

    Pushing to 1.5. Release is theoretically tomorrow, this will not be done in time.

  2. Jeff Haynie 2011-04-15

    (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...

  3. Stephen Tramer 2011-04-15

    Is this still broken? I tested it and it worked.

  4. Jeff Haynie 2011-04-15

    (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...

JSON Source