Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试使用像 Japanese 这样的特殊字符提出请求时,请求将会中断,我无法得到结果。所以我的问题是,如何将其他语言的特殊字符传递给 request ?提前致谢。
您应该像这样将字符编码为 UTF8
NSString *encodedURL = [oldUrl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];