473,757 Members | 8,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

? 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.="Cont ent-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.="Cont ent-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 10628
On May 24, 4:43 pm, "Robertu" <r...@nospam.co mwrote:
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.="Cont ent-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.="Cont ent-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.="Cont ent-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.="Cont ent-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.="Cont ent-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.co mwrote in message
news:U6******** ************@tw ister1.libero.i t...
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.="Cont ent-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.="Cont ent-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
10567
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 string to Unicode but the text file created has just a square box in place of the Euro symbol. Can anybody help me in this matter ? Thanks in advance VK
4
25939
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 well as
1
3858
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 charset=iso-8859-15 and tried $allowed = ""; if ( ereg( $allowed, $str) )
7
2094
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
12810
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
6519
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 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > <html
2
4635
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 not part of the Codepage 819 which leads to a converting of the Euro Symbol to hex(1A) in the Database. On the Client, hex(1A) is returned which is different from the send hex(80). Is there any other codepage which is similar to Codepage 819, but...
5
7067
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 frCulture As New CultureInfo("fr-FR", False) Thread.CurrentThread.CurrentCulture = frCulture Dim myCurrency As New (123456) myCurrency.ToString("C", LocalFormat) OutString = "Euro : " + myCurrency.ToString("C", NumberFormatInfo.CurrentInfo)
8
3674
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 settings, but I'd rather set this say at start up in the global.asax since other web sites running on the server may not share this setting. -Max
0
9489
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9298
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9737
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8737
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7286
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5172
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3399
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2698
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.