The way to develop a post on iOS is to submit a Chinese string and display garbled characters in the background


If you use AFNetWork, post, try adding this line of code after the initialization of AFHTTPRequestOperationManager. [manager.requestSerializer setValue:@"application/x-www-form-urlencoded; charset=utf-8" forHTTPHeaderField:@"Content-Type"];


No additional code encoding is required after using this


 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326798617&siteId=291194637