I create an NSMutableUrlRequest to send data to the server, add all the necessary fields to it, and then add the line to send as follows:
[theRequest setHTTPBody:[postString dataUsingEncoding: NSUTF8StringEncoding]]
postString is a regular NSString.
The problem is that when I get this request on the server, all the plus signs (+) disappear from the http body. So if I had "abcde + fghj" on the iPhone, I get "abcde fghj" on the server.
Could this be a coding problem when using dataUsingEncoding: NSUTF8StringEncoding? Or any NSMutableUrlRequest disable function? What can I do to stop withdrawal plus signs? I need to get UTF8 strings on server side.
source share