This might help you One problem is the fact that you're using NSASCIIStringEncoding. The XML is UTF8 encoded (as specified in the XML response), so you should be using NSUTF8StringEncoding. Another the problem is that you're using %s in your NSLog calls for NSString Objects, which won't work. %s is for C strings, null terminated character arrays, not objects. Replace %s with %@.
seems to work fine I'm requesting a website from yql using something like: select * from html where url="http://www.somerandomsite.com"&format=json&callback=process , You're probably missing a tag which defines the charset:
I wish this helpful for you You have created a structure clientData which contains an integer, two strings and a double. You open the file in binary mode and you use fwrite() to write the structure to it. This means you are writing the integer and the double in binary, and not as character strings, so what you see is logically correct, and you could read the file back into a structure with fread() and then print it out.
hope this fix your issue Normally, Angular works totally fine with UTF-8. I assume you're on Windows OS. If you have Git Bash installed, you can run file -i and it will tell you the encoding right away. I believe text/plain; charset=utf-8 would work best. If you see some other format, simple re-saving with UTF-8 should fix the issue.