Remove non-printable characters from server-side PHP

Remove non-printable characters from server-side PHP

fbasfbas 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.

Replies

  • allanallan Posts: 46,577Questions: 1Answers: 6,502 Site admin

    Thanks for posting this - I'm sure it will help someone!

    Allan

Sign In or Register to comment.