Sorry I'm kind of new to this site so I'm not exactly sure how this works. I have a php character encoding problem. Basically my program needs to take in characters, some of which are special characters and display their values. Here is a simplified version of the part which doesn't work:
$string = "franÃ§ais";
for ($i = 0; $i < strlen($string); $i++)
echo ord($string[$i]) . " ";
The problem comes about when it tries to echo ord($string[$i]) when i equals 4 at which point it must echo ord(Ã§) which doesn't work for some reason. What could I do instead so that it gives me the right value for Ã§ and other special characters?