I'm using imagettftext to generate a image (I've tried imagefttext as well) but I cannot display the EURO Sign. Look at how it makes it! The font is Myriad and in Photoshop the sign looks fine.
Asked
Active
Viewed 808 times
2
-
How you write EURO ? € ? AC;? € ? – red eyes dev Jun 03 '11 at 11:13
-
$euro=chr(8364); OR $euro=chr(128); – red eyes dev Jun 03 '11 at 11:14
-
I've tried both chr and both , and the euro sign as well. – Ciprian Mocanu Jun 03 '11 at 11:18
-
$euro=utf8_decode(html_entity_decode('€',ENT_NOQUOTES,'UTF-8')); – red eyes dev Jun 03 '11 at 11:19
-
@red eyes dev, now I see a "?" – Ciprian Mocanu Jun 03 '11 at 11:22
-
Sure you are charset UTF-8 ? – red eyes dev Jun 03 '11 at 11:25
-
Does the font you are using have the euro character? – Garry Jun 03 '11 at 11:43
-
@red eyes dev.. it's an image, not a HTML! – Ciprian Mocanu Jun 03 '11 at 11:44
-
@Garry If I can see it in Photoshop and other programs then I would assume so – Ciprian Mocanu Jun 03 '11 at 11:44
1 Answers
1
You can always just make an image of a euro sign (with Photoshop) and substitute it with GD.
Not really a solution but at least something that works.

Halcyon
- 57,230
- 10
- 89
- 128