Skip to content
Advertisement

PHP How to Remove/Replace Unknown question mark diamond characters

I am using PHP to access data on old machines and output them.

Putty shows:

JavaScript

Its the weird formatting in a attempt to show data in a more clean way

PHP echo-ed chrome shows:

JavaScript

I have tried:

JavaScript

But it doesn’t filter them out. The output is already utf 8.

Does anyone know how to filter out these things? Maybe identify what � is to php?

Advertisement

Answer

Try this:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement