mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2004
Posts: 2,127
maroon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
$decode(%var | &binvar, amubt, N)

$decode ignores the N chunk parameter. Both v7.52 and current version display in red the entire length 300, while v6.35 displays the red string as 016017018019020021022023024025026027028029030

Code:
//var %switch m , %original $regsubex($str(x,100),/x/g,$base(\n,10,10,3)) , %b $encode(%original,%switch) | echo 3 -a original: %original | echo -a encoded: %b | echo 4 -a $decode(%b,%switch,2)


Joined: Dec 2002
Posts: 5,411
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,411
Thanks for your bug report. This was actually an intentional change. Some scripters were decoding in chunks, which resulted in broken UTF-8 text. So newer versions of $decode() do not pay attention to the N. I will update the help file to reflect this.


Link Copied to Clipboard