Get string from Server.UrlEncode as uppercase

Viewed 8407

I want its output as uppercase. This is what I get on Server.UrlEncode("http://"):

http%3a%2f%2f

but I need:

http%3A%2F%2F

Is there built-in solution in C#?


The url encoded shall serve as signature base string (input to signature algorithm) to create digest (hash). The hash will then be verified by other system (java,php,etc), so they need to recreate the hash by signature reconstruction first.

5 Answers
Uri.EscapeDataString("http://")

This code return

http%3A%2F%2F
Related