EMAIL: Extended Characters in SUBJECT field

From: Sean O'Dwyer (nospam_at_spamfree.dud)
Date: 04/28/04


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



Relevant Pages

  • Re: EMAIL: Extended Characters in SUBJECT field
    ... > on a Spanish language site I'm devloping. ... > newsreader won't let me type the character directly. ... have been "iso-8859-1" and the receiver would be very happy. ...
    (comp.lang.perl.misc)
  • [Dialog] New user - some questions
    ... I've just started using Dialog as my *newsreader*, ... I don't mind writing scripts - on the contrary, ... an identity for this, as I use it for posting, to get the "From" address I ... Can I create an identity with no inbox? ...
    (news.software.readers)
  • Re: Big fun actually trying to use Delphi 2005
    ... >> It's a programmable newsreader, ... >> pascal or basic scripts for most of the interesting functionality if ... great functionality and quick adaptability that results from third-parties, ... because it means I have to write an IDE for the scripts, ...
    (borland.public.delphi.non-technical)
  • Re: My posts cannot get througt to scs!
    ... sent scripts (scripts are usually not detected by ... your virus scanners) to disable your newsreader ... cannot access the servers. ...
    (soc.culture.singapore)