我有以下代码:
NSString *url = [NSString stringWithContentsOfURL:myURL encoding:NSStringEncodingConversionAllowLossy error:&error];
并且我使用 Wifi 得到的字符串与使用移动网络不同。基本上是一样的,但我没有空格就得到它。就像在 wifi 中这样:
<html> hello </html>
我的移动网络将是这样的:
<html>hello</html>
怎么会这样?
我正在使用 iPhone SDK 6.0 和 Xcode 4.5。