摘要: 在网络请求时,URL出现中文或特殊字符时会造成请求失败,通常可使用 addingPercentEncoding(withAllowedCharacters: CharacterSet) 方法进行解决,其中CharacterSet为设置转化的方式,可根据需要进行选择,但有时会出现某些特殊字符不能转化的 阅读全文
posted @ 2019-06-04 16:04 Q_King 阅读(994) 评论(0) 推荐(0) 编辑