<?php

$str = "an example painâ€” if youâ€™re";
$str = mb_convert_encoding($str, "Windows-1252", "UTF-8");
echo $str;