I need an example to encode: abcdef into: %61%62%63%64%65%66.
The only way I found of doing this is on this website: http://scriptasylum.com/tutorials/encode-decode.html
But how can I do this in C# manually.
I need an example to encode: abcdef into: %61%62%63%64%65%66.
The only way I found of doing this is on this website: http://scriptasylum.com/tutorials/encode-decode.html
But how can I do this in C# manually.
 
    
     
    
    string TextToEncode= "abcdef";
var encodedText = "%" + string.Join("%", from c in TextToEncode select ((int)c).ToString("X"));
//encodedText  = %61%62%63%64%65%66
