How to make EncodeForURL() encode the same way as URLEncodedFormat()

我与影子孤独终老i 提交于 2021-01-27 07:42:42

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!