I have a code that printing properly ascii character upto 127. But its not printing extended ascii characters properly.
$data = "Two Ts and one F.";
foreach (count_chars($data, 0) as $i => $val) {
echo "There were $val instance(s) of " , chr($i) , " in the string.<br/>";
}
its output same from 128 to 255 is :
There were 0 instance(s) of � in the string.
I have saved my file in utf-8 encoding