Thread Hexadezimale Codierung (9 answers)
Opened by [E|B] at 2004-05-31 18:24

[E|B]
 2004-05-31 21:29
#25724 #25724
User since
2003-08-08
2561 Artikel
HausmeisterIn
[Homepage] [default_avatar]
Boah, Sahne!
Funtzt! :D

Kannst du mir den Snippet kurz erklären?
Insbesondere diese Zeilen:

Code: (dl )
1
2
3
4
var b = (str.charCodeAt(i) & 0xF0) >> 4;
retval += (b <= 9) ? String.fromCharCode(b + 48) : String.fromCharCode((b - 10) + 65);
b = str.charCodeAt(i) & 0x0F;
retval += (b <= 9) ? String.fromCharCode(b + 48) : String.fromCharCode((b - 10) + 65);
Gruß, Erik!

s))91\&\/\^z->sub{}\(\@new\)=>69\&\/\^z->sub{}\(\@new\)=>124\&\/\^z->sub{}\(\@new\)=>);
$_.=qq~66\&\/\^z->sub{}\(\@new\)=>93~;for(@_=split(/\&\/\^z->sub{}\(\@new\)=>/)){print chr;}

It's not a bug, it's a feature! - [CGI-World.de]

View full thread Hexadezimale Codierung