TubsInserse
New Member
i am new on ios programming and i am trying to parse a XML string\[code\]:<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><SurveyListGetResponse xmlns="http://tempuri.org/"><SurveyListGetResult>{"SurveyList":[{"SurveyID":1,"SurveyName":"SomeSurvey","SurveyDescription":"Clean","BeginDate":"01.01.2013","EndDate":"05.01.2013"}],"Questions":[{"SurveyID":1,"QuestionID":8,"Question":"Mobile Question","AnswerTypeID":2}],"Answers":[{"SurveyID":1,"QuestionID":8,"AnswerID":18,"Answer":"YES"},{"SurveyID":1,"QuestionID":8,"AnswerID":19,"Answer":"Hay?r"}]}</SurveyListGetResult></SurveyListGetResponse></soap:Body></soap:Envelope>\[/code\] this is my xml string and as you see above there is the Turkish character in the "Answer":"Hay?r", and i checked the all string, parser is going to until "Hay" but it doesnt take the "?r".\[code\] NSData *xmlData = http://stackoverflow.com/questions/14458175/[responseString dataUsingEncoding:NSWindowsCP1254StringEncoding]; NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithData:xmlData]; [xmlParser setDelegate:self]; [xmlParser parse];\[/code\]this is my parser code and i used to NSWindowsCP1254StringEncoding and NSUTF8StringEncoding.aftes string is going to parser, it is changing like that \[code\]{"SurveyList":[{"SurveyID":1,"SurveyName":"Some Survey","SurveyDescription":"Clean","BeginDate":"01.01.2013","EndDate":"05.01.2013"}],"Questions":[{"SurveyID":1,"QuestionID":8,"Question":"Mobil Soru","AnswerTypeID":2}],"Answers":[{"SurveyID":1,"QuestionID":8,"AnswerID":18,"Answer":"YES"},{"SurveyID":1,"QuestionID":8,"AnswerID":19,"Answer":"Hay\[/code\] what i need to do for solve it? Sorry for my bad english,Thank you.