EMAIL: Extended Characters in SUBJECT field
From: Sean O'Dwyer (nospam_at_spamfree.dud)
Date: 04/28/04
- Next message: pembed2003: "Re: Regex to format 1234 to 1,234"
- Previous message: Trebor A. Rude: "Re: Newbie: Looking for comments on this (working) script"
- Next in thread: Villy Kruse: "Re: EMAIL: Extended Characters in SUBJECT field"
- Reply: Villy Kruse: "Re: EMAIL: Extended Characters in SUBJECT field"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 28 Apr 2004 04:44:15 GMT
Using this code, as I've used for ages in many scripts, causes an error
on a Spanish language site I'm devloping.
print MAIL "MIME-Version: 1.0\n";
print MAIL "Content-type: text/plain; charset=iso-8859-1\n";
print MAIL "Content-transfer-encoding: quoted-printable\n";
print MAIL "Subject: Confirmacion\n\n";
"Confirmacion" should have an accent over the second "o" but my
newsreader won't let me type the character directly.
The error is that sendmail sends the e-mail correctly, but the recipient
sees the subject messily formatted as...
Subject: =?UNKNOWN?Q?Confirmaci=F3n?=
How can I encode this character properly in the script, so the accent
appears over the "o"?
(The Perl source file is uploaded as ISO Western Latin 1.)
Thanks in advance,
Sean
- Next message: pembed2003: "Re: Regex to format 1234 to 1,234"
- Previous message: Trebor A. Rude: "Re: Newbie: Looking for comments on this (working) script"
- Next in thread: Villy Kruse: "Re: EMAIL: Extended Characters in SUBJECT field"
- Reply: Villy Kruse: "Re: EMAIL: Extended Characters in SUBJECT field"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|