Page 1 of 1

Euro symbol and PHP

Posted: 2009-09-22T07:25:10-07:00
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

Re: Euro symbol and PHP

Posted: 2009-09-30T21:36:39-07:00
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

€