AFHTTPRequestOperationManager *mgr = [AFHTTPRequestOperationManager manager];
[mgr.requestSerializer setValue:@"application/x-www-form-urlencoded; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
全局搜索Content-Type然后加上; charset=utf-8就可以了
AFHTTPRequestOperationManager *mgr = [AFHTTPRequestOperationManager manager];
[mgr.requestSerializer setValue:@"application/x-www-form-urlencoded; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
全局搜索Content-Type然后加上; charset=utf-8就可以了
本文标题:AFNetworking传输乱码问题
本文链接:https://www.haomeiwen.com/subject/gbaahxtx.html
网友评论