Remove non-printable characters from server-side PHP
Remove non-printable characters from server-side PHP
fbas
Posts: 1,094Questions: 4Answers: 0
I don't know if this has already been discussed, but I was getting errors due to non-printable characters in my database, causing failure in the ssp.class.php file for server-side processing.
I added a filter to the SSP::data_output() method in the inner loop:
$data[$i][ $column['db']] = preg_replace('/[^[:print:]]/', '', $data[$i][ $column['db'] ]);
perhaps this will help someone with this same issue.
This discussion has been closed.
Replies
Thanks for posting this - I'm sure it will help someone!
Allan