Swift 汉字转码 汉字转码123let URL = "https://www.baidu.com/s?wd=点个赞吧"let result = str.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)print(result) 解码12let URL = result?.removingPercentEncodingprint(URL) 随笔 #Swift Swift 汉字转码 https://wonderhoi.com/2023/10/10/Swift-汉字转码/ 作者 wonderhoi 发布于 2023年10月10日 许可协议 CoreData 删除数据时 SwiftUI 崩溃 上一篇 SwiftUI TextField 与 Keyboard 合集 下一篇