Menu
I wrote a script that will output .csv data into a HTML table to then copy and paste into a website. My problem is that some of the characters are displaying as �. I tried running the data through the following function, but it doesn’t correct the problem.
`function filterData($data) {
$data = trim($data);
$data = str_replace(‘±’, ‘±’, $data);
$data = str_replace(‘°’, ‘°’, $data);
return $data;
}
Does anyone have any suggestions on how to convert these characters into something readable?