Skip to content

Instantly share code, notes, and snippets.

@Ph47
Created December 19, 2014 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ph47/31d9fc795156c39fd9e9 to your computer and use it in GitHub Desktop.
Save Ph47/31d9fc795156c39fd9e9 to your computer and use it in GitHub Desktop.
using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string url = "http://localhost:15914/main.ashx?action=directorAddManager&name=%D0%9B%D0%B5%D1%85%D0%B0&status=true&pass=1234";
Console.WriteLine(Uri.UnescapeDataString(url));
//выдает http://localhost:15914/main.ashx?action=directorAddManager&name=Леха&status=true&pass=1234
Console.WriteLine(Uri.EscapeDataString("Леха"));
//выдает %D0%9B%D0%B5%D1%85%D0%B0
Console.ReadLine();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment