<?php

header
('Content-type: text/html; charset=utf-8');

?><html>
<body style="font-family:Arial,sans-serif; font-size: 12px;">
<?php

$word 
utf8_encode('még'); # még = so far, some more

for ($i 0$i strlen($word); $i++)
{
  echo 
ord($word{$i});
  echo 
' ';
  echo 
$word{$i};
  echo 
"\n";
}

echo 
substr($word02);
echo 
"\n";

echo 
mb_substr($word02'utf-8');
echo 
"\n";


?>
</body>
</html>