AFNetworking/AFNetworking — pull request #638 by koke (2012-11-12 14:28:47+00:00)
Title: Fall back to ISO-8859-1 when generating responseString

As specified by RFC 2616:

> When no explicit charset parameter is provided by the sender, media subtypes of the "text" type are defined to have a default charset value of "ISO-8859-1" when received via HTTP

Right now, AFNetworking defaults to UTF-8 if no encoding is specified in the response headers.

With this changes, if the resulting string is nil (NSData couldn't be converted to NSString using that encoding) it falls back to ISO-8859-1 and tries again