C #, the equivalent of encodeURIComponent , is well covered in SO and elsewhere, but what about encodeURI ? Basically, I want to encode invalid only URL characters, not reserved characters like /, :etc. so
"http://www.example.com/my cool page"
will be encoded before
"http://www.example.com/my%20cool%20page"
Is there anything in .NET for this? Or is it a regular expression that I can do better?
source
share