NSURL *url = [NSURL URLWithString:[[NSString stringWithFormat:@"www.mywebsite.com/setnumber.asmx?myNumber=%@", myNumber.text]
stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[[NSURLConnection alloc] initWithRequest:request delegate:self];
当我NSLog
,网址我在下面看到
www.mywebsite.com/setnumber.asmx?myNumber=+96512345678
但是当我查看数据库时,我没有看到+
. 我只看到数字为 96512345678 知道为什么会这样吗?