Swift4.0 URLString内有汉字转解码方法
let str = "https://www.zoesacc.com/?d=萨达吧"
let fuck = str.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)
let ooo = fuck?.removingPercentEncoding
print(ooo)//解码
Swift4.0 URLString内有汉字转解码方法
let str = "https://www.zoesacc.com/?d=萨达吧"
let fuck = str.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)
let ooo = fuck?.removingPercentEncoding
print(ooo)//解码