I use System.Net.WebUtility.UrlEncode(myString) to UrlEncode string and get encoded string in uppercase tags after encoding (I found solution .net UrlEncode - lowercase problem). But problem what left for me ar ( and ) encoding. In this case both symbols left uncoded when I need %28 and %29 code instead them. How to solve this problem?
Asked
Active
Viewed 191 times
1
-
I think you will just have to do the replacement yourself as [shown here.](http://stackoverflow.com/questions/32484829/how-to-force-20-instead-of-in-system-net-webutility-urlencode). Interestingly, Notepad++ MIME Tools plugin has a "full urlencode" feature that does it. – Crowcoder Jul 16 '16 at 11:09
-
I used this: myString = myString.Replace("(", "%28").Replace(")", "%29"); – Sharunas Bielskis Jul 16 '16 at 11:33
1 Answers
1
I used this:
myString = myString.Replace("(", "%28").Replace(")", "%29");

Sharunas Bielskis
- 1,033
- 1
- 16
- 25