LottaLava
02-09-2004, 02:06 PM
Hello dudes, someone here knows where can i find all URLīs special caracteres? Like %20 ( that means space ), i want to know which code is \n.
Regards,
LottaLava
Regards,
LottaLava
|
||||
URLīs special codesLottaLava 02-09-2004, 02:06 PM Hello dudes, someone here knows where can i find all URLīs special caracteres? Like %20 ( that means space ), i want to know which code is \n. Regards, LottaLava liorean 02-09-2004, 02:17 PM \n represents the notion of a newline, that is LF, CRLF, CR or NEL depending on the operative system. LF if 0a, CR is 0d. A1ien51 02-09-2004, 02:23 PM alert(escape('a!~@!#$%^$%$&^%&)(*_()-_|')) LottaLava 02-09-2004, 05:39 PM I found a site that explain how to convert \n, \t and other caracter to URL encoder, we can use String.charCodeAt( ) to convert those caracters, mainly its a conversion in hex of ascii caracterīs value. For example: Space hex => 20. But just now i know that. Thank you, LottaLava glenngv 02-10-2004, 03:32 AM As Alien51 pointed out. You can just escape the special character to get the encoded value; var chars = '! ~@!#%^$&)(*_-_|+<>=\t\r\n'; var arr = chars.split(''); var str = ''; for (var i=0;i<arr.length;i++) str+=arr[i] + ' --> ' + escape(arr[i]) + '\n'; alert(str); |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum