Page 2 of 2

Posted: Wed Feb 19, 2003 12:51 am
by eggoz
Thanks for the help. I took your idea and did the opposite. didn't encode anything, and replaced & % ( ) with the correct #number.

Code: Select all

<?php
$decode['to'] = array('%25', '%28', '%29', '%31'); 
$decode['from'] = array('%', '(', ')', '"');


$encoded = str_replace($decode['from'],$decode['to'],$Description);
$Description_encoded = $encoded
?>
All appears to be in working order.