Euro symbol and PHP

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
Daniel_in_the_sky
Posts: 13
Joined: 2009-07-27T05:04:53-07:00
Authentication code: 8675309

Euro symbol and PHP

Post by Daniel_in_the_sky »

Hi every body.
Im beginner on IM, im exuting it with php
im writing on pictures with -draw tool.
i need to write the € symbol
exec("convert src.jpg -draw \" '€'\" exit.jpg");
every things fine if there is just php codes on my script.

the fact is that i need also to genrate html (echo) script on this same php file.
So instate of € i have ?
i tried with header('Content-type: text/html; charset=UTF-8'); on top of the php script but no changes.
i tried echo utf8_encode($valeur);
i tried env LC_CTYPE=en_AU.utf8 \
printf "\u2018single\u2019 - \u201Cdouble\u201D" | \
convert -background lightblue -fill blue -pointsize 36 \
label:@- label_quotes.gif

What should i do ?
thank you very much
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Euro symbol and PHP

Post by fmw42 »

Not sure I know exactly what you are trying to do, but in HTML you need to use character codes.

so for euro symbol, you would use either

€

or

€
Post Reply