我遇到了在XMLParser中获取实际解析数据的问题。在UrlConnection委托后,在Did收到数据(如果我将其转换为字符串),我得到以下字符串:
<folder>
<id>5</id>
<name> DEEPAK </name>
<mobile>123456</mobile>
<email>dee@company.com</email>
<address>dee address</address>
<designation>VICE PRESIDENT â A</designation>
<working_period>2 years</working_period>
</folder>
最后在解析之后我得到了以下数据字符串:
{
address = "dee address";
designation = "\U2013 A";
email = "dee@company.com";
id = 5;
mobile = 123456;
name = "DEEPAK ";
}
现在我很困惑,指定不正确(即不是实际的字符串)。而不是
<designation>VICE PRESIDENT â A</designation>
我只获得字符串:designation =“\ U2013 A”;
我该如何解决问题?