We have scoured the web for a solution to this, but no luck yet...
We are using:
$output = strtoupper($input);
Imagettftext($image, 27, 0, $start_x1, $start_y1, $color, 'font.ttf', strtok($output, ' '));
to write the first word of $output to $image.
This works fine in all cases EXCEPT for Ö,Ä,Ü. These get displayed as ö,ä,ü. Our .ttf DOES contain ALL characters.
We have tried converting $input using:
for ($i = 0; $i < strlen($input); $i++)
{
$cc = ord($input{$i});
if ($cc >= 128 || $cc == 38)
$output .= "&#$cc;";
else
$output .= chr($cc);
}
but this DOESN'T work... Any ideas how we can fix this??
Thanks in advance for any help!!