Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

HTTP Client Breaking

I have an HTTP Client to retrieve certain data. Everything works well except when the returned data contains special characters. For example if it contains characters such as '\n' or '©' it seems to break because the property HTTPClient.responseText is null even though if I check the address on a web browser I do get some response with these special characters.

Is this a bug? Or is there a workaround for this?
Any help is appreciated


This behavior only occurs on iDevices, Android works properly. Anybody have any ideas???

— asked August 4th 2010 by Abraham Vivas
  • bug
  • httpclient
  • xhr

2 Answers

  • Can you provide a sample of the returned string( of course with the part that breaks the httpclient)?

    — answered August 4th 2010 by Dan Tamas
    • You can find part of the response text here. The only symbol that messes it up is the copyright symbol. But since I am accessing this data I can't change it from the serverside. Also, the other text is similar the part of the string that breaks it contains \n in it.

      — commented August 4th 2010 by Abraham Vivas
    • PS. The pastie code is formatted, but it is obviously returned without any breaks or anything.

      — commented August 4th 2010 by Abraham Vivas
  • Has anobody faced similar problems in Apple devices?

    — answered August 6th 2010 by Abraham Vivas
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.