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DA=D6=B5=A1=A3=D3=D0=B5=C4=B3=A1=BA=CF=A3=AC=D2=D4=A1=B0=3D?charse=' & @CRLF & _
't?Q?xxxxxxxx?=3D=A1=B1=B1=ED=CA=BExxxxxxxx=CA=C7Quoted-printable=B1=E0=C2=' & @CRLF & _
'=EB=A3=AC=C7=D2=D4=AD=CE=C4=B5=C4=D7=D6=B7=FB=BC=AF=CA=C7charset=A1=A3=D4=' & @CRLF & _
'=DA=B6=CE=CC=E5=C4=DA=D4=F2=D6=B1=BD=D3=B1=E0=C2=EB=A3=AC=CA=CA=B5=B1=CA=B1=' & @CRLF & _
'=BB=FA=BB=BB=D0=D0=A3=AC=BB=BB=D0=D0=C7=B0=B6=EE=CD=E2=CA=E4=B3=F6=D2=BB=B8=' & @CRLF & _
"=F6'=3D'=A1=A3=0D=0A=0D=0A=CF=EA=CF=B8=B3=F6=B4=A6=B2=CE=BF=BC=A3=BAhttp:=" & @CRLF & _
'//www.jb51.net/web/25072.html=0D=0A=0D=0A=CC=E1=B9=A9=D2=BB=CF=C2=CD=F8=C2=' & @CRLF & _
'=E7=CB=D1=CB=F7=B5=BD=B5=C4=B2=CE=BF=BC=B4=FA=C2=EB=A3=AC=C7=EB=B8=DF=C8=CB=' & @CRLF & _
'=B0=EF=C3=A6=C5=AA=B8=F6=BD=E2=C2=EBUDF=B3=F6=C0=B4=A3=AC=D0=BB=D0=BB=A3=A1=' & @CRLF
msgbox(0,0,QP_Decode($str))
Func QP_Decode($str)
Local $Test = StringRegExp($str, '=[0-9a-fA-F]{2}|[\x20-\x3c\x3e-\x7e\x09]', 3)
local $output=''
for $i=0 to UBound($Test)-1
if StringLen($Test[$i])>1 then
$temp="0x"&StringReplace($Test[$i]&$Test[$i+1],"=","")
$output&=BinaryToString($temp)
$i+=1
ElseIf $Test[$i]="=0D" And $Test[$i+1]="=0A" Then
$output&=@CRLF
$i+=1
Else
$output&=$Test[$i]
EndIf
Next
Return $output
EndFunc
|