Sending different languages to GD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



How can I get Polish , iso-8859-2, text,  to output properly ?
PHP is reading the accent characters as blocks

I tried this, but it did not work...

// Set up text for a 'Polish' button
$text = "rozwiązania";
$text = mb_convert_encoding($text, "iso-8859-2","Auto");

//  Composit the text over a button image and output it
imagettftext($im, $fontSize, 0, 11, 16, $white, $font, $text);

Ultimately, I want to pass a $language variable to the script to get it to output to any number of supported languages
is there a simple function that does this ?

many thanks in advance :)
g

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux