If I have a string like
"Hello world"
Whats an easy way to encode the string (URL encoding style) so when printed it reads
"Hello%20world".
Using C# and .NET?
Printable View
If I have a string like
"Hello world"
Whats an easy way to encode the string (URL encoding style) so when printed it reads
"Hello%20world".
Using C# and .NET?
string encoded = System.Web.HttpUtility.UrlEncode( "Hello World" );
Never used that method, maybe the call needs some tweaking :)
Worked perfectly, thanks nvoigt!:D