Note Submitter: pinkpanther at swissonline dot ch
----
Sorry, above I mixed up QP-Decode and UrlDecode, the example I gave above is in fact UrlDecode:
function UrlDecode($string) {
return preg_replace("/%([0-9A-Fa-f]{2})/e", "chr(hexdec('\\1'))", $string);
}
f.e. replaces '%3F' with '?'
Quoted-printable would be:
function qp_decode($string) {
return preg_replace("/=([0-9A-F]{2})/e", "chr(hexdec('\\1'))", $string);
}
f.e. replaces '=20' with ' '
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.