问题
The URLEncodedFormat() function does something that I specifically want which is this:
Generates a URL-encoded string. For example, it replaces spaces with %20
Why does EncodeForURL() not do this? It replaces spaces with a plus "+" symbol instead which is stopping my URLs working.
How would I be able to get around this other than using URLEncodedFormat()?
来源:https://stackoverflow.com/questions/25516195/how-to-make-encodeforurl-encode-the-same-way-as-urlencodedformat