Something of a strange question but let's see what kind of response it gets...
If I code a console app (VS 2013, .NET 4.5.1) and execute this line of code:
Uri.EscapeUriString("[")
I get this:
[
However if I execute the same thing (well, technically Uri.EscapeUriString("[").Dump()
) in LINQPad on my machine I get this:
%5B
To further complicate things, according to this post Uri.EscapeUriString("[")
should indeed return %5B
.The post was written on 27/06/2012.
I'm thinking that perhaps LINQPad is referencing an older DLL than that used by VS, but that would imply that EscapeUriString
has changed relatively recently, which I cannot find any record of. Does anyone have any ideas as to what could be causing this behaviour?