Quoting Robin Vickery <[EMAIL PROTECTED]>:

On 9/5/05, Rick Emery <[EMAIL PROTECTED]> 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']);

Worked great, thanks!

Rick

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to