skip to Main Content

Why does removingPercentEncoding() not replace '+' like it does with %20? – Ios swift

I have two strings encoded differently for spacing: let first = "https://joytst.page.link/zMx3nAj9DxwcE1JC9?title=New+calendar+test" let second = "https://joytst.page.link/zMx3nAj9DxwcE1JC9?title=New%20calendar%20test" let firstOutput = first.removingPercentEncoding //https://joytst.page.link/zMx3nAj9DxwcE1JC9?title=New+calendar+test let secondOutput = second.removingPercentEncoding //https://joytst.page.link/zMx3nAj9DxwcE1JC9?title=New calendar test Why doesn't it remove encoding correctly, since + is a correct encoding…

VIEW QUESTION
Back To Top
Search