473,378 Members | 1,410 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

? euro symbol

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
May 24 '07 #1
7 10599
On May 24, 4:43 pm, "Robertu" <r...@nospam.comwrote:
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
the euro symbols in html are
€ i think thats the asci code
&euro; this supposedly is not always supported

May 24 '07 #2
Robertu wrote:
$headers.= "Content-Type: text/html; charset=utf-8\r\n";

But when emails attive to the ? euro sybnol arrive like a "?" and
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
May 24 '07 #3
Mohawk Mawk wrote:
the euro symbols in html are
€ i think thats the asci code
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
http://tobyinkster.co.uk/blog/2007/05/22/wifi-scare/
May 24 '07 #4
Robertu schrieb:
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
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)
HtmlMimeMail5.

OLLi

--
When asked how I use PHP, I have a simple answer. I use it to feed my
family.
[posted on php.internals]
May 25 '07 #5
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?
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.
http://www.kratz.nl/
May 25 '07 #6
I am sorry but my emails are sehded without euro symbol
I tried all your tips
May 25 '07 #7
"Robertu" <rb**@nospam.comwrote in message
news:U6********************@twister1.libero.it...
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

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
presence.

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
word.

Regards,
Baldwin

May 30 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: VK | last post by:
Hello All I am writing a string from the database into a text file which contains "Euro" symbol . I have tried using iconv() and utf_encode and mb_convert_encoding() functions to convert the...
4
by: Robert Zierhofer | last post by:
hi there, it seems as if i can´t convert the euro and pound sign to their html equivalents. i tried eregi_replace("€", "&euro;", $haystack); eregi_replace("£", "&pound;", $haystack); as...
1
by: Kevin | last post by:
Hi, I want to check that a string entered via a from contains the only cdertain characters including the Euro currency symbol using a reg exp in PHP. I've set my web page to use...
7
by: flm | last post by:
I've got an XML document that contains euro signs and looks like : <?xml version="1.0" encoding="utf-8"?> <merchant id="52"> <product offerid="03543068131" deliverycost="6,90 €" /> ....
11
by: MH | last post by:
Thai may have been asked before but I'm new here.... How can I put the Euro symbol, ? using alt0128 in my page and get it validated as HTML 4.01 ? -------------- MH
18
by: gabriel | last post by:
greetings, I am currently working on a website where I need to print the Euro symbol and some "oe" like in "oeuvre". If I choose this : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
2
by: tilmann | last post by:
We are using ASCII-Tablespaces with the Codepage 819 on z/OS. We're now having a problem with the EURO symbol. The data is inserted from a Windows-Client, running Codepage 1252. The Euro symbol is...
5
by: SalamElias | last post by:
I followed instructions in MSDN help articles and wrotethe folowing code in order to display numeric numbers with Euro symbol as follows : ---------------------------- Dim OutString As = "" Dim...
8
by: Max | last post by:
My client has decided to use the Euro for the entire web site. Is there an easy way to get my ASP.NET app to format currency to Euro instead of US-dollar? Right now it's just reading the server...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.