Ride[source_name]=2152,%20Mohali%20Stadium%20Rd,%20Phase%2010,%20Sector%2064,%20Sahibzada%20Ajit%20Singh%20Nagar,%20Punjab%20160062,%20भारत
此参数在以印地语运行时导致崩溃,而在西类牙语和英语下运行良好。请建议我。崩溃描述如下:-
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not
satisfying: URLString'
Best Answer-推荐答案 strong>
检查一下
目标 - C
NSString *string = @"भारत";
NSString *encoded = [string stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLFragmentAllowedCharacterSet]];
Swift 3.0
let string = "भारत"
let urlString = string.addingPercentEncoding( withAllowedCharacters: . urlUserAllowed)
Output :: %E0%A4%AD%E0%A4%BE%E0%A4%B0%E0%A4%A4
关于ios - AFNetworking 在多语言应用程序中崩溃,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/44023064/
|