Encode a URL with space in Swift
Published in
Dec 25, 2018
(URL)
在顯示網頁時,
如果網址內有空格該怎麼辦?
可以透過addingPercentEncoding(withAllowedCharacters:NSCharacterSet.urlQueryAllowed)
轉換網址
(URL)
在顯示網頁時,
如果網址內有空格該怎麼辦?
可以透過addingPercentEncoding(withAllowedCharacters:NSCharacterSet.urlQueryAllowed)
轉換網址
iOS & Golang 隨手記 www.linkedin.com/in/peggytsaifc 歡迎+Linkedin交流~