I have a URI like this:
http://example.org/servers/bob@home/repositories/Examples/models
Now I want to deal with the fact that ideally I should encode the @ char in the URI.
Now if I use the System.Web.HttpUtility.UrlEncode
it encodes the / and : etc.
http%3a%2f%2fexample.org%2fservers%2fbob%40home%2frepositories%2fExamples%2fmodels
So is there a way to encode the segments of the URI without messing up the separators etc. - without having to break the URI and encode each part?