GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-07-22T17:33:30.000+0000 |
Affected Version/s | Release 3.3.0 |
Fix Version/s | Release 3.4.0 |
Components | iOS |
Labels | qe-3.3.0, qe-ks, qe-manualtest |
Reporter | Neha Mittal |
Assignee | Pedro Enrique |
Created | 2014-06-30T10:53:43.000+0000 |
Updated | 2014-08-20T21:04:57.000+0000 |
This is a regression since it does not occur in 3.2.3.GA.
On KitchenSink->Platform>XHR> UTF-8 GET/POST does not display character encoding.
Steps to Reproduce:
1. Tap on UTF-8 GET/POST
Actual Result:
1. Label 1 displays "waiting for response..."
Expected Result:
1. Label 1 should display array(1) { ["a"]=> string(9) "€漢字" } array(0) { } "
Note: This works fine in Android.
Please refer to the attached screenshot for your reference.
Passing arguments to the send method on a GET request is not allowed. The example in the Kitchen Sink is wrong. The reason this worked in the past is that the ASI library used internally manipulated the request and sometimes changed the GET to a POST, other times it appended the arguments to the url. It is the responsibility of the developer to url-encode the arguments of the request. Documentation: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Network.HTTPClient-method-send Kitchen Sink PR: https://github.com/appcelerator/KitchenSink/pull/27
Verified the fix, using Mac osx 1-.9.4 Maverics Appcelerator Studio, build: 3.4.0.201408180158 Node.JS Version: v0.10.28 NPM Path: /usr/local/bin/npm NPM Version: 1.4.23 acs@1.0.16 alloy@1.5.0-dev (git://github.com/appcelerator/alloy.git#b2e8f580d023e45c63072df924666e58193a8981) install@0.1.7 npm@1.4.23 sudo@1.0.3 titanium@3.4.0-dev (git://github.com/appcelerator/titanium.git#9079326639c7f610dafee33dd16742de7d92d795) titanium-code-processor@1.1.1 Xcode6 Device: iPhone 5c iOS 7.1 KS master