[FX.php List] The Euro sign (€ or € ) in email messages

Gjermund Gusland Thorsen ggt667 at gmail.com
Fri May 4 15:23:45 MDT 2007


& t 53
Message 53:
Mime-Version: 1.0 (Apple Message framework v752.3)
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Subject: =?ISO-8859-1?Q?UC:_=C6=D8=C5?=
Date: Fri, 4 May 2007 23:17:53 +0200
X-Mailer: Apple Mail (2.752.3)

lc: =E6=F8=E5=


Here is "æøå" = "=E6=F8=E5="

subject seems to be encoded differently....

On 5/4/07, Gjermund Gusland Thorsen <ggt667 at gmail.com> wrote:
> if you set encoding to: Content-Type: text/plain; charset=WINDOWS-1252;
> then € symbol = "=80"
>
> I removed the address from and to as those are irrelevant from the message below
> "=804000" reads like "€4000" in the mailprogram
>
> & t 53
> Message 53:
> Mime-Version: 1.0 (Apple Message framework v752.3)
> Content-Transfer-Encoding: quoted-printable
> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed
> Subject: test
> Date: Fri, 4 May 2007 23:10:12 +0200
> X-Mailer: Apple Mail (2.752.3)
>
> =804000
>
> test=
>
> On 5/4/07, Erik Andreas Cayré <erik at cayre.dk> wrote:
> >
> > Den 04/05/2007 kl. 22.16 skrev Gjermund Gusland Thorsen:
> >
> > > Why don't you just try to send the message to an account that you can
> > > read with mail( on the unix command line ) and check the encoding
> > > used?
> >
> > I don't have the expertise to set up that scenario.
> >
> > When viewing all headers in my client (Apples Mail.app included with
> > Mac OS X) it tells me the encoding is ISO-8859-15, which is what I
> > specified in the headers used in the php mail() function.
> >
> > Is that not to be trusted?
> >
> > > ggt667
> > >
> > > On 5/4/07, Erik Andreas Cayré <erik at cayre.dk> wrote:
> > >> Hi all,
> > >>
> > >> After the discussion som days ago regarding (un)encoding text, I
> > >> decided to finally try to solve a problem which has been waiting for
> > >> my attention.
> > >>
> > >> At the end of a completed purchase, the customer is presented with a
> > >> web page receipt, and the script generating it also sends an email
> > >> receipt to the customer.
> > >>
> > >> Reading the docs for html_entity_decode() I decided to try the
> > >> charset ISO-8859-15, since it supposedly contains the Euro sign € (in
> > >> case any of you don't know, it's the currency symbol for the
> > >> relatively new common currency now in use in most European countries)
> > >>
> > >> Snippets of my code:
> > >> $message2 = html_entity_decode($message, ENT_COMPAT, 'ISO-8859-15');
> > >>
> > >> $mailheaders2 = 'From: dagkort.dk <php at dagkort.dk>' . '
> > >> ' .'Reply-To: dagkort.dk <service at dagkort.dk>' . '
> > >> ' . 'MIME-Version: 1.0' . '
> > >> ' . 'Content-type: text/plain; charset=ISO-8859-15' . '
> > >> ' . 'Content-Transfer-Encoding: quoted-printable' . '
> > >> ' . 'X-Mailer: PHP/' . phpversion();
> > >>
> > >> // send testmail receipt
> > >>
> > >>         mail('erik.cayre at dagkort.dk', $subject, wordwrap
> > >> ($message2, 70),
> > >> $mailheaders2);
> > >>
> > >> The messages sent using the above do not correctly show the Euro
> > >> sign.
> > >> Instead I get this '¬' (don't know the name of that character, but
> > >> it's &#xAC; when HTML encoded)
> > >>
> > >> Does anyone have a solution, or a clue?
> > >>
> > >>
> > >> ---
> > >> Erik Andreas Cayré
> > >> Spangsbjerg Møllevej 169
> > >> DK-6705 Esbjerg Ø
> > >>
> > >> Home Tel: +45 75150512
> > >> Mobile: +45 40161183
> > >>
> > >> »Interest can produce learning on a scale compared to fear as a
> > >> nuclear explosion to a firecracker.«
> > >> --Stanley Kubrick
> > >>
> > >> »If you can't explain it simply, you don't understand it well
> > >> enough.«
> > >> -- Albert Einstein
> > >>
> > >> »If you don't have time to do it right, when will you have time to do
> > >> it over?«
> > >> -- John Wooden, basketball coach
> > >>
> > >>
> > >> _______________________________________________
> > >> FX.php_List mailing list
> > >> FX.php_List at mail.iviking.org
> > >> http://www.iviking.org/mailman/listinfo/fx.php_list
> > >>
> > > _______________________________________________
> > > FX.php_List mailing list
> > > FX.php_List at mail.iviking.org
> > > http://www.iviking.org/mailman/listinfo/fx.php_list
> >
> >
> >
> > ---
> > Erik Andreas Cayré
> > Spangsbjerg Møllevej 169
> > 6705 Esbjerg Ø
> >
> > Privat Tel: 75150512
> > Mobil: 40161183
> >
> > ---
> > »Interesse kan skabe læring på en skala sammenlignet med frygt, som
> > en nuklear eksplosion i forhold til en kineser.«
> > --Stanley Kubrick
> >
> > »Kun p....sure mennesker kan ændre verden. Innovation skabes ikke af
> > 'markedsanalyse', men af folk, der er afsindigt irriterede over
> > tingenes tilstand «
> > --Tom Peters
> >
> > »Hvis du ikke kan forklare det simpelt, forstår  du det ikke godt nok.«
> > -- Albert Einstein
> >
> > »Hvis du ikke har tid til at gøre det rigtigt, hvornår vil du så have
> > tid til at lave det om?«
> > -- John Wooden, basketball coach
> >
> >
> > _______________________________________________
> > FX.php_List mailing list
> > FX.php_List at mail.iviking.org
> > http://www.iviking.org/mailman/listinfo/fx.php_list
> >
>


More information about the FX.php_List mailing list