[TIMOB-7743] Android: encodeURIComponent returns odd String
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-07-05T04:52:30.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | Sprint 2012-04, Release 2.0.0 |
Components | Android |
Labels | module_app_properties, qe-testadded |
Reporter | Marshall Culpepper |
Assignee | Ping Wang |
Created | 2012-02-21T16:08:10.000+0000 |
Updated | 2012-07-05T16:06:29.000+0000 |
Description
When using encodeURIComponent, the return value from Android's Uri.encode seems to be good while debugging, but the JS return value that gets printed doesn't seem to be correct. It seems there is an error in the binding layer somewhere..
Code:
Ti.API.debug(encodeURIComponent("üöäß &?/ tes tetst et st e\ntest etes te stet"));
Log:
02-21 18:07:37.930: D/TiAPI(22633): 1.817237E+132FBFBD1.104170E-317FBFBD1.811392E+132FBFBD2.164448E-312FBFBD %26 F F 5.034598e-308s 3.022026e+132tst 3.321918e+133t t 5.585349e-308Atest 5.034598e-308tes 1.301351e+132YC�8��:��:Q��&�&!`�&嚿&���&嚿&嚿&tet
Expected Value:
%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%20%26%3F%2F%20tes%20tetst%20et%20st%20e%0Atest%20etes%20te%20stet
Testing code
Run the above code. The expected output is
Closing bug. Verified fix on: SDK build: 2.0.0.v20120316124800 Runtime: v8, rhino Titanium Studio, build: 2.0.0.201203152033 Device: Nexus S (2.3.6)
Reopening to update labels.