I'm trying to extract en email with the +
special character but for some reason the ParseQueryString
skips it:
namespace ParsingProblem
{
class Program
{
static void Main(string[] args)
{
var uri = new System.Uri("callback://gmailauth/#email=mypersonalemail15+1@gmail.com");
var parsed = System.Web.HttpUtility.ParseQueryString(uri.Fragment);
var email = parsed["#email"];
// Email is: mypersonalemail15 1@gmail.com and it should be mypersonalemail15+1@gmail.com
}
}
}