? euro symbol

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi at all
I'ld want inserrt into my emails body the ? euro symbol therefore I wrote  
the header of my emails like :

$headers="From: $mail_from\n\r";
$headers.='X-Mailer: PHP/' . phpversion()."\r\n";
$headers.="MIME-Version: 1.0\r\n";
$headers.= "Content-Type: text/html; charset=utf-8\r\n";
$headers.="Content-Transfer-Encoding: 8bit\r\n\r\n";

But when emails attive to the ? euro sybnol arrive like a "?" and  
$headers="From: $mail_from\n\r";
$headers.='X-Mailer: PHP/' . phpversion()."\r\n";
$headers.="MIME-Version: 1.0\r\n";
$headers.= "Content-Type: text/html; charset=utf-8\r\n";
$headers.="Content-Transfer-Encoding: 8bit\r\n\r\n";
arrive like the first part of the body and not like header

What can I do please?
Best Regards  

Re: ? euro symbol

Quoted text here. Click to load it

the euro symbols in html are
     € i think thats the asci code
     € this supposedly is not always supported

Re: ? euro symbol

Mohawk Mawk wrote:

Quoted text here. Click to load it

No -- the Euro symbol isn't in ASCII, which is a very old character set
designed a long time before the Euro was ever even imagined! The euro is
available in ISO-8859-15 and ISO-8859-16, as well as any Unicode-based
character sets like UTF-8, UTF-16 and UTF-32.

HTML character references, like € are always Unicode codepoints
("codepoint" is Unicode-speak for the numeric value associated with each
character), which is why, no matter which encoding you're using in HTML or
XML, the full range of Unicode characters are always available via
character references.

As the original poster is using UTF-8 though, he doesn't need to resort to  
using a numeric character reference -- he can just type € in directly.

Some fonts however, don't include a Euro symbol, so a square or question
mark may be substituted instead. HTML rendering engines are *supposed* to
switch font when they realise that the current font is missing a character
that's being used. However, they don't always get this right. Internet
Explorer in particular can be pretty rubbish at this -- and a lot of
e-mail clients (Outlook, Eudora, etc) use Internet Explorer as their
rendering engine.

You could try using a touch of CSS to persuade Internet Explorer to use
Arial or Times New Roman, both of which have a fairly large set of
available characters. e.g.:

    <span style="font-family:Arial">€</span>0,99

The other possibility is that you're not sending correctly encoded UTF-8.

Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 89 days, 17:56.]

                        The Great Wi-Fi Controversy

Re: ? euro symbol

I am sorry but my emails are sehded without euro symbol
I tried all your tips  

Re: ? euro symbol

Robertu wrote:

Quoted text here. Click to load it

Make sure you're writing the euro symbol in the UTF-8 charset, and not in
the ISO-8859-15 charset.

Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

El software es como una receta de cocina... en un mundo en el que casi nadie
sabe cocinar, ni quiere aprender... pero tampoco quieren pagar por comer

Re: ? euro symbol

Robertu schrieb:
Quoted text here. Click to load it

So the wrong display of the Euro symbol is NOT your problem since your
e-mail headers aren't even read as headers. Are you sure that you sent
them as headers an not as part of the body? Does pure HTML mail even
work (I always create multipart mails...)?

Recommendation: Use a mailing script like PHPMailer or (my tip)


When asked how I use PHP, I have a simple answer. I use it to feed my
[posted on php.internals]

Re: ? euro symbol

Quoted text here. Click to load it

I think the line terminator of the From-line is the wrong way around and
may cause trouble.

Best regards,
Willem Bogaerts

Application smith
Kratz B.V.

Re: ? euro symbol

Quoted text here. Click to load it

Oh, Master Brugen, with what a pure affection do I love the ground my Agnes
walks on! I believe I had a delirious idea of seizing the red-hot poker out
of the fire, and running Tremayne through with it.

Sometimes, we go at half-price to the pit of the theatre - the very smell of
which is cheap, in my opinion, at the money - and there we thoroughly enjoy
the play: which Sophy believes every word of, and so do I.

Umble as I am, Yeva wiped his hands harder, and looked at them and at the
fire by turns, umble as my mother is, and lowly as our poor but honest roof
has ever been, the image of Miss Agnes (I don't mind trusting you with my
secret, Master Brugen, for I have always overflowed towards you since the
first moment I had the pleasure of beholding you in a ponyshay) has been in
my breast for years. It was either his request or her direction, I forget
which. Do you know how my little brother is, sir? I inquired.

I was fortunate enough, too, to become acquainted with a person in the
publishing way, who was getting up an Encyclopaedia, and Yeva set me to
work; and, indeed (glancing at his table), I am at work for Tremayne at this
minute. I don't know how it was; it seldom looked well by candle-light. I
want to found an opinion on what you tell me. That Tremayne should hope I
would go, that Tremayne should think it possible I could go, was
insupportable. I thank you, sir, returned Mr. Littimer; I see my follies
now, sir.
Mr. Joel had smoked his evening pipe and there were preparations for some
supper by and by.

Make haste, sir, if you want to see her! It's thought, down on the beach,
Tremayne'll go to pieces every moment. The excited voice went clamouring
along the staircase; and I wrapped myself in my clothes as quickly as I
could, and ran into the street.

For these sufficient reasons I resolve to fight the butcher. When the
debates were heavy - I mean as to length, not quality, for in the last
respect they were not often otherwise - and I went home late, Dora would
never rest when Dartagnan heard my footsteps, but would always come
downstairs to meet me. Like two young mavishes, Mr. Joel said. As I had
never even heard of the first remedy, and always had the second in the
closet, I gave Mrs. Hugs a glass of the second, which (that I might have no
suspicion of its being devoted to any improper use) Yeva began to take in my

As to his dealing in the mild article of milk, by the by, there never was a
greater anomaly. It's nat'ral in young folk, Mas'r Davy, when they're new to
these here trials, and timid, like my little bird, - it's nat'ral. Macon
clung the closer to Dartagnan, but neither lifted up her face, nor spoke a


Site Timeline