Thanks.
---
Reference:
Code: Select all
$decoded = urldecode(<clipboard>);
text $decoded;
Code: Select all
text(urldecode(<clipboard>));Code: Select all
$decoded = urldecode(<clipboard>);
text $decoded;
Code: Select all
text(urldecode(<clipboard>));Code: Select all
$T = urldecode("<clipboard>");
new("file.txt", file);
writefile(<curname>, "$T", , "tu");
Code: Select all
rename s, "%20|%21|%22|%23|%24|%25|%26|%27|%28|%29|%2A|%2B|%2C|%2D|%2E|%2F|%30|%31|%32|%33|%34|%35|%36|%37|%38|%39|%3A|%3B|%3C|%3D|%3E|%3F|%40|%41|%42|%43|%44|%45|%46|%47|%48|%49|%4A|%4B|%4C|%4D|%4E|%4F|%50|%51|%52|%53|%54|%55|%56|%57|%58|%59|%5A|%5B|%5C|%5D|%5E|%5F|%60|%61|%62|%63|%64|%65|%66|%67|%68|%69|%6A|%6B|%6C|%6D|%6E|%6F|%70|%71|%72|%73|%74|%75|%76|%77|%78|%79|%7A|%7B|%7C|%7D|%7E|%7F|%80|%81|%82|%83|%84|%85|%86|%87|%88|%89|%8A|%8B|%8C|%8D|%8E|%8F|%90|%91|%92|%93|%94|%95|%96|%97|%98|%99|%9A|%9B|%9C|%9D|%9E|%9F|%A0|%A1|%A2|%A3|%A4|%A5|%A6|%A7|%A8|%A9|%AA|%AB|%AC|%AD|%AE|%AF|%B0|%B1|%B2|%B3|%B4|%B5|%B6|%B7|%B8|%B9|%BA|%BB|%BC|%BD|%BE|%BF|%C0|%C1|%C2|%C3|%C4|%C5|%C6|%C7|%C8|%C9|%CA|%CB|%CC|%CD|%CE|%CF|%D0|%D1|%D2|%D3|%D4|%D5|%D6|%D7|%D8|%D9|%DA|%DB|%DC|%DD|%DE|%DF|%E0|%E1|%E2|%E3|%E4|%E5|%E6|%E7|%E8|%E9|%EA|%EB|%EC|%ED|%EE|%EF|%F0|%F1|%F2|%F3|%F4|%F5|%F6|%F7|%F8|%F9|%FA|%FB|%FC|%FD|%FE|%FF>> |!|"|#|$|%|&|'|(|)|*|+|,|-|.|/|0|1|2|3|4|5|6|7|8|9|:|;|<|=|>|?|@|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z|[|\|]|^|_|`|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|{|||}|~| |€| |‚|ƒ|„|…|†|‡|ˆ|‰|Š|‹|Œ| |Ž| | |‘|’|“|”|•|–|—|˜|™|š|›|œ| |ž|Ÿ| |¡|¢|£| |¥|||§|¨|©|ª|«|¬|¯|®|¯|°|±|²|³|´|µ|¶|·|¸|¹|º|»|¼|½|¾|¿|À|Á|Â|Ã|Ä|Å|Æ|Ç|È|É|Ê|Ë|Ì|Í|Î|Ï|Ð|Ñ|Ò|Ó|Ô|Õ|Ö| |Ø|Ù|Ú|Û|Ü|Ý|Þ|ß|à|á|â|ã|ä|å|æ|ç|è|é|ê|ë|ì|í|î|ï|ð|ñ|ò|ó|ô|õ|ö|÷|ø|ù|ú|û|ü|ý|þ|ÿ";
Hmm, it seems there is a cleverer way to do this.... also look at replacelist() which will probably do a better job here than rename.SkyFrontier wrote:I can't believe I'm doing this (aka "yes, I'm desperate enough to do it!"), part 1:More to come...Code: Select all
rename s, ... ... ... <madness> ...
Too late... "I made it the hardest walk, part 2".admin wrote:Hmm, it seems there is a cleverer way to do this.... also look at replacelist() which will probably do a better job here than rename.Code: Select all
rename s, ... ... ... <madness> ...
Code: Select all
$str = "<clipboard>";
$str = replace($str,"%20"," ");
$str = replace($str,"%21","!");
$str = replace($str,"%22",""");
$str = replace($str,"%23","#");
$str = replace($str,"%24","$");
$str = replace($str,"%25","%");
$str = replace($str,"%26","&");
$str = replace($str,"%27","'");
$str = replace($str,"%28","(");
$str = replace($str,"%29",")");
$str = replace($str,"%2A","*");
$str = replace($str,"%2B","+");
$str = replace($str,"%2C",",");
$str = replace($str,"%2D","-");
$str = replace($str,"%2E",".");
$str = replace($str,"%2F","/");
$str = replace($str,"%30","0");
$str = replace($str,"%31","1");
$str = replace($str,"%32","2");
$str = replace($str,"%33","3");
$str = replace($str,"%34","4");
$str = replace($str,"%35","5");
$str = replace($str,"%36","6");
$str = replace($str,"%37","7");
$str = replace($str,"%38","8");
$str = replace($str,"%39","9");
$str = replace($str,"%3A",":");
$str = replace($str,"%3B",";");
$str = replace($str,"%3C","<");
$str = replace($str,"%3D","=");
$str = replace($str,"%3E",">");
$str = replace($str,"%3F","?");
$str = replace($str,"%40","@");
$str = replace($str,"%41","A");
$str = replace($str,"%42","B");
$str = replace($str,"%43","C");
$str = replace($str,"%44","D");
$str = replace($str,"%45","E");
$str = replace($str,"%46","F");
$str = replace($str,"%47","G");
$str = replace($str,"%48","H");
$str = replace($str,"%49","I");
$str = replace($str,"%4A","J");
$str = replace($str,"%4B","K");
$str = replace($str,"%4C","L");
$str = replace($str,"%4D","M");
$str = replace($str,"%4E","N");
$str = replace($str,"%4F","O");
$str = replace($str,"%50","P");
$str = replace($str,"%51","Q");
$str = replace($str,"%52","R");
$str = replace($str,"%53","S");
$str = replace($str,"%54","T");
$str = replace($str,"%55","U");
$str = replace($str,"%56","V");
$str = replace($str,"%57","W");
$str = replace($str,"%58","X");
$str = replace($str,"%59","Y");
$str = replace($str,"%5A","Z");
$str = replace($str,"%5B","[");
$str = replace($str,"%5C","\");
$str = replace($str,"%5D","]");
$str = replace($str,"%5E","^");
$str = replace($str,"%5F","_");
$str = replace($str,"%60","`");
$str = replace($str,"%61","a");
$str = replace($str,"%62","b");
$str = replace($str,"%63","c");
$str = replace($str,"%64","d");
$str = replace($str,"%65","e");
$str = replace($str,"%66","f");
$str = replace($str,"%67","g");
$str = replace($str,"%68","h");
$str = replace($str,"%69","i");
$str = replace($str,"%6A","j");
$str = replace($str,"%6B","k");
$str = replace($str,"%6C","l");
$str = replace($str,"%6D","m");
$str = replace($str,"%6E","n");
$str = replace($str,"%6F","o");
$str = replace($str,"%70","p");
$str = replace($str,"%71","q");
$str = replace($str,"%72","r");
$str = replace($str,"%73","s");
$str = replace($str,"%74","t");
$str = replace($str,"%75","u");
$str = replace($str,"%76","v");
$str = replace($str,"%77","w");
$str = replace($str,"%78","x");
$str = replace($str,"%79","y");
$str = replace($str,"%7A","z");
$str = replace($str,"%7B","{");
$str = replace($str,"%7C","|");
$str = replace($str,"%7D","}");
$str = replace($str,"%7E","~");
$str = replace($str,"%7F"," ");
$str = replace($str,"%80","€");
$str = replace($str,"%81"," ");
$str = replace($str,"%82","‚");
$str = replace($str,"%83","ƒ");
$str = replace($str,"%84","„");
$str = replace($str,"%85","…");
$str = replace($str,"%86","†");
$str = replace($str,"%87","‡");
$str = replace($str,"%88","ˆ");
$str = replace($str,"%89","‰");
$str = replace($str,"%8A","Š");
$str = replace($str,"%8B","‹");
$str = replace($str,"%8C","Œ");
$str = replace($str,"%8D"," ");
$str = replace($str,"%8E","Ž");
$str = replace($str,"%8F"," ");
$str = replace($str,"%90"," ");
$str = replace($str,"%91","‘");
$str = replace($str,"%92","’");
$str = replace($str,"%93","“");
$str = replace($str,"%94","”");
$str = replace($str,"%95","•");
$str = replace($str,"%96","–");
$str = replace($str,"%97","—");
$str = replace($str,"%98","˜");
$str = replace($str,"%99","™");
$str = replace($str,"%9A","š");
$str = replace($str,"%9B","›");
$str = replace($str,"%9C","œ");
$str = replace($str,"%9D"," ");
$str = replace($str,"%9E","ž");
$str = replace($str,"%9F","Ÿ");
$str = replace($str,"%A0"," ");
$str = replace($str,"%A1","¡");
$str = replace($str,"%A2","¢");
$str = replace($str,"%A3","£");
$str = replace($str,"%A4"," ");
$str = replace($str,"%A5","¥");
$str = replace($str,"%A6","|");
$str = replace($str,"%A7","§");
$str = replace($str,"%A8","¨");
$str = replace($str,"%A9","©");
$str = replace($str,"%AA","ª");
$str = replace($str,"%AB","«");
$str = replace($str,"%AC","¬");
$str = replace($str,"%AD","¯");
$str = replace($str,"%AE","®");
$str = replace($str,"%AF","¯");
$str = replace($str,"%B0","°");
$str = replace($str,"%B1","±");
$str = replace($str,"%B2","²");
$str = replace($str,"%B3","³");
$str = replace($str,"%B4","´");
$str = replace($str,"%B5","µ");
$str = replace($str,"%B6","¶");
$str = replace($str,"%B7","·");
$str = replace($str,"%B8","¸");
$str = replace($str,"%B9","¹");
$str = replace($str,"%BA","º");
$str = replace($str,"%BB","»");
$str = replace($str,"%BC","¼");
$str = replace($str,"%BD","½");
$str = replace($str,"%BE","¾");
$str = replace($str,"%BF","¿");
$str = replace($str,"%C0","À");
$str = replace($str,"%C1","Á");
$str = replace($str,"%C2","Â");
$str = replace($str,"%C3","Ã");
$str = replace($str,"%C4","Ä");
$str = replace($str,"%C5","Å");
$str = replace($str,"%C6","Æ");
$str = replace($str,"%C7","Ç");
$str = replace($str,"%C8","È");
$str = replace($str,"%C9","É");
$str = replace($str,"%CA","Ê");
$str = replace($str,"%CB","Ë");
$str = replace($str,"%CC","Ì");
$str = replace($str,"%CD","Í");
$str = replace($str,"%CE","Î");
$str = replace($str,"%CF","Ï");
$str = replace($str,"%D0","Ð");
$str = replace($str,"%D1","Ñ");
$str = replace($str,"%D2","Ò");
$str = replace($str,"%D3","Ó");
$str = replace($str,"%D4","Ô");
$str = replace($str,"%D5","Õ");
$str = replace($str,"%D6","Ö");
$str = replace($str,"%D7"," ");
$str = replace($str,"%D8","Ø");
$str = replace($str,"%D9","Ù");
$str = replace($str,"%DA","Ú");
$str = replace($str,"%DB","Û");
$str = replace($str,"%DC","Ü");
$str = replace($str,"%DD","Ý");
$str = replace($str,"%DE","Þ");
$str = replace($str,"%DF","ß");
$str = replace($str,"%E0","à");
$str = replace($str,"%E1","á");
$str = replace($str,"%E2","â");
$str = replace($str,"%E3","ã");
$str = replace($str,"%E4","ä");
$str = replace($str,"%E5","å");
$str = replace($str,"%E6","æ");
$str = replace($str,"%E7","ç");
$str = replace($str,"%E8","è");
$str = replace($str,"%E9","é");
$str = replace($str,"%EA","ê");
$str = replace($str,"%EB","ë");
$str = replace($str,"%EC","ì");
$str = replace($str,"%ED","í");
$str = replace($str,"%EE","î");
$str = replace($str,"%EF","ï");
$str = replace($str,"%F0","ð");
$str = replace($str,"%F1","ñ");
$str = replace($str,"%F2","ò");
$str = replace($str,"%F3","ó");
$str = replace($str,"%F4","ô");
$str = replace($str,"%F5","õ");
$str = replace($str,"%F6","ö");
$str = replace($str,"%F7","÷");
$str = replace($str,"%F8","ø");
$str = replace($str,"%F9","ù");
$str = replace($str,"%FA","ú");
$str = replace($str,"%FB","û");
$str = replace($str,"%FC","ü");
$str = replace($str,"%FD","ý");
$str = replace($str,"%FE","þ");
$str = replace($str,"%FF","ÿ");
copytext $str;
status "URLdecoding done! Don't hate me! ^^";
Code: Select all
$a = replacelist("<clipboard>", "%20,%21,%22,%23,%24,%25,%26,%27,%28,%29,%2A,%2B,%2C,%2D,%2E,%2F,%30,%31,%32,%33,%34,%35,%36,%37,%38,%39,%3A,%3B,%3C,%3D,%3E,%3F,%40,%41,%42,%43,%44,%45,%46,%47,%48,%49,%4A,%4B,%4C,%4D,%4E,%4F,%50,%51,%52,%53,%54,%55,%56,%57,%58,%59,%5A,%5B,%5C,%5D,%5E,%5F,%60,%61,%62,%63,%64,%65,%66,%67,%68,%69,%6A,%6B,%6C,%6D,%6E,%6F,%70,%71,%72,%73,%74,%75,%76,%77,%78,%79,%7A,%7B,%7C,%7D,%7E,%7F,%80,%81,%82,%83,%84,%85,%86,%87,%88,%89,%8A,%8B,%8C,%8D,%8E,%8F,%90,%91,%92,%93,%94,%95,%96,%97,%98,%99,%9A,%9B,%9C,%9D,%9E,%9F,%A0,%A1,%A2,%A3,%A4,%A5,%A6,%A7,%A8,%A9,%AA,%AB,%AC,%AD,%AE,%AF,%B0,%B1,%B2,%B3,%B4,%B5,%B6,%B7,%B8,%B9,%BA,%BB,%BC,%BD,%BE,%BF,%C0,%C1,%C2,%C3,%C4,%C5,%C6,%C7,%C8,%C9,%CA,%CB,%CC,%CD,%CE,%CF,%D0,%D1,%D2,%D3,%D4,%D5,%D6,%D7,%D8,%D9,%DA,%DB,%DC,%DD,%DE,%DF,%E0,%E1,%E2,%E3,%E4,%E5,%E6,%E7,%E8,%E9,%EA,%EB,%EC,%ED,%EE,%EF,%F0,%F1,%F2,%F3,%F4,%F5,%F6,%F7,%F8,%F9,%FA,%FB,%FC,%FD,%FE,%FF", " ,!,',#,$,%,&,',(,),*,+,comma,-,.,/,0,1,2,3,4,5,6,7,8,9,:,;,<,=,>,?,@,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,[,\,],^,_,`,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,{,|,},~, ,€, ,‚,ƒ,„,…,†,‡,ˆ,‰,Š,‹,Œ, ,Ž, , ,‘,’,“,”,•,–,—,˜,™,š,›,œ, ,ž,Ÿ, ,¡,¢,£, ,¥,|,§,¨,©,ª,«,¬,¯,®,¯,°,±,²,³,´,µ,¶,·,¸,¹,º,»,¼,½,¾,¿,À,Á,Â,Ã,Ä,Å,Æ,Ç,È,É,Ê,Ë,Ì,Í,Î,Ï,Ð,Ñ,Ò,Ó,Ô,Õ,Ö, ,Ø,Ù,Ú,Û,Ü,Ý,Þ,ß,à,á,â,ã,ä,å,æ,ç,è,é,ê,ë,ì,í,î,ï,ð,ñ,ò,ó,ô,õ,ö,÷,ø,ù,ú,û,ü,ý,þ,ÿ", ",", 1);
$a = replace($a,"comma", ",");
copytext $a;
status "All done!";
...Help file/documentation could mention such a limit, what about...?admin wrote:Not possible. The UrlUnescape Function is limited to INTERNET_MAX_URL_LENGTH (2083):
const int INTERNET_MAX_PATH_LENGTH = 2048;
const int INTERNET_MAX_SCHEME_LENGTH = 32;
const int INTERNET_MAX_URL_LENGTH = INTERNET_MAX_SCHEME_LENGTH + 3 + INTERNET_MAX_PATH_LENGTH;