We've implemented an HTTP authentication connection, encoded in C# with Uri.EscapeDataString().
I'm trying to make an identical java test application that does the exact same thing as the C# version, but URLEncoder.encode(string, "UTF-8") adds additional encoding that isn't quite the same as the C# Uri.EscapeDataString() function.
What's the equivalent encoding method?