php, gd and special characters problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rmropp
Forum Newbie
Posts: 1
Joined: Mon Jul 02, 2007 2:26 pm

php, gd and special characters problem

Post by rmropp »

Hello,

I want to put special characters (german umlauts) into an image.
I use imagettftext() and the string "( ä ü ö xx Ä Ü Ö ß ) without blanks ( äüöxxÄÜÖß )".
If i put an blank around the characters it works without blanks there squares.
You see the result on:
http://heisenberg.rmroppert.com/test/gd_php_out.pdf

I tried the same on different machines (i386) under different OS (NetBSD 1.6, NetBSD 3.0.1, NetBSD 3.1)
and different php versions.

You may find the output of phpinfo of our testserver under:
http://heisenberg.rmroppert.com/test/phpinfo1.pdf

I think this is an problem of th built-in version og gd. Perhaps the image is correct if i use perl and gnuplot.

So does anyone know what can i do to solve the problem?
How do i use an external version of gd in php for testing?

Best regards
Reinhold
Post Reply