I have run into a problem when encoding a URL. I understand the differences between UrlPathEncode
and UrlEncode
, but I seem to have run into an instance where neither will help.
I want to encode the following my-page-???-testing
. When using UrlPathEncode
it ignores anything after the first ?
, and UrlEncode
escapes all spaces into +
, which is not what I want.
Is there a method I could use to encode question marks too?