Response.text() problem on iOS


#1

the following code:


this.http.get(Config.avvisiURL)
            .map(res => res.text())
            .subscribe(res => {
                console.log(res);
                let doc = XmlObjects.parse(res);

works fine on Android (the XML document is correctly parsed), but on iOS the console logs:

<3c3f786d 6c207665 7273696f 6e3d2231 2e302220 656e636f 64696e67 3d227574 662d3822 3f3e0a3c

Any idea of what is going on?