Created
December 19, 2014 11:41
-
-
Save Ph47/31d9fc795156c39fd9e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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