var url = “http://www.baidu.com/test=中文乱码的问题”
var urlString = url.addingPercentEncoding(withAllowedCharacters:.urlHostAllowed)
var request = URLRequest(url: URL(string: urlString))
var url = “http://www.baidu.com/test=中文乱码的问题”
var urlString = url.addingPercentEncoding(withAllowedCharacters:.urlHostAllowed)
var request = URLRequest(url: URL(string: urlString))
本文标题:ios Swift3 处理Url中文乱码崩溃
本文链接:https://www.haomeiwen.com/subject/xloejxtx.html
网友评论