I have some query text that is being encoded with JavaScript, but I\'ve encountered a use case where I might have to encode the same text on the server side, and the encodin
UrlPathEncode doesn't escape " because they don't need to be escaped in path components.
UrlPathEncode
"
Uri.EscapeDataString should do what you want.