Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17248] iOS: KitchenSink - Platform - XHR - UTF-8 GET: does not display any result

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-07-22T17:33:30.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sRelease 3.4.0
ComponentsiOS
Labelsqe-3.3.0, qe-ks, qe-manualtest
ReporterNeha Mittal
AssigneePedro Enrique
Created2014-06-30T10:53:43.000+0000
Updated2014-08-20T21:04:57.000+0000

Description

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.

Attachments

FileDateSize
IMG_0485.PNG2014-06-30T10:53:43.000+000061175

Comments

  1. Pedro Enrique 2014-07-07

    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
  2. Olga Romero 2014-08-20

    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 28a706e9-4130-4acb-bc76-9494255a9279

JSON Source