On 9/5/05, Rick Emery <rick@xxxxxxxxxxxxxxxxxxx> wrote: > > What I really want to do is replace the non-printable character(s) with > printable character(s) (maybe a question mark, or a space), but haven't > been able to find a function that will do it. Maybe something like: > > $xmlOutput .= '<remark>'; > $xmlOutput .= ctype_print_replace($remarks['Remark'], ''); > $xmlOutput .= '</remark>'; $xmlOutput .= preg_replace('/[^[:print:]]/', '?', $remarks['Remark']); -robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php