URL传递数据中,如果含有中文,需要进行编码:
NSString *urlEncodeString = [urlStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
接收到数据后,需要进行解码处理:
NSString *UrlDeCodeString = [urlEncodeString stringByRemovingPercentEncoding];