How to convert Windows-1252 characters to values in php?
You can use mb_convert_encoding
$str = "an example pain— if you’re";
$str = mb_convert_encoding($str, "Windows-1252", "UTF-8");
echo $str;
//an example pain— if you’re
DEMO:
http://ideone.com/NsIb5x