skip to Main Content

How to send Apostrophe ('s) in API request(Alamofire) swift 5? – Ios swift

I'm trying to send Apostrophe('s) in request using Alamofire. I've tried below things but didn't get success 1) addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) 2) addingPercentEncoding(withAllowedCharacters: .alphanumerics) 3) func utf8EncodedString()-> String { let messageData = self.data(using: .nonLossyASCII) let text = String(data: messageData!, encoding: .utf8)…

VIEW QUESTION
Back To Top
Search