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))