iOS Swift 3 0 String encoding 转换

279 阅读1分钟
"你好".addingPercentEncoding(withAllowedCharacters: .urlHostAllowed)! 

说真的,这个方法我找了俩小时。