Possible Duplicate:
.net UrlEncode - lowercase problem
I'm using the HttpUtility.UrlEncode method to encode a string for me. The problem is that the letters in the encoded places are in lower case for example:
a colon(:) becomes %3a rather than %3A.
Not so much of an issue until I come to encrypt this string. The end result I want looks like this.
zRvo7cHxTHCyqc66cRT7AD%2BOJII%3D
If I use capital letters I get this
zRvo7cHxTHCyqc66cRT7AD+OJII=
which is correct, but if I use lower case letters (ie use UrlEncode rather than a static string) I get this
b6qk+x9zpFaUD6GZFe7o1PnqXlM=
Which is obviously not the string I want. Is there a simple way to make the encoded characters capital without reinventing the wheel of UrlEncoding?
Thnaks