Can I decode "kim_test_1001%40yahoo.com%2Ecom" tokim_test_1001@dotnet.itags.org.yahoo.com.
thank you
Use the Unescape function in .Net
here's the MSDN explemation to help you understand what unescape to.
TheUnescapefunction returns a string (in Unicode format) that contains the contents of charString. ASCII character set equivalents replace all characters encoded with the%xx hexadecimal form. Characters encoded in%uxxxx format (Unicode characters) are replaced with the Unicode character with hexadecimal encodingxxxx.
I tried this:
var d;
d="kim_test_1001%40yahoo.com%2Ecom";
alert (unescape(d));
and the alert message gave the required value.
In serverside, you can use Server.UrlDecode whose JavaScript equivalent is unescape()
0 comments:
Post a Comment