On Jan 16, 1:23 pm, Max Kanat-Alexander <mka
...@bugzilla.org> wrote:
> On Wed, 16 Jan 2008 08:20:56 -0800 (PST) "dave.xdroop.
...@gmail.com"
> > Unknown encoding '"us-ascii"'
> > ...or:
> > Unknown encoding '"iso-8859-1"'
> Hey Dave. That is really weird. I just tried this on my local
> CentOS 4 machine:
> perl -w -MEncode -e 'print encode("UTF-8", decode("iso-8859-1",
> "test"));
Any ideas on this? I'm also encountering the problem. In my case, it's
when I try to use Entourage as my mailer; it specifies US-ASCII as the
charset, and the e-mail script chokes:
procmail: Couldn't determine implicit lockfile from "/usr/local/
apache2/htdocs/bugzilla/email_in.pl"
Parsing Email
Splitting Body and Attachments [Type: text/plain; charset="US-
ASCII"]...
Part Content-Type: text/plain; charset="US-ASCII"
Part Character Encoding: "US-ASCII"
Unknown encoding '"US-ASCII"' From x...@yyy.com Thu Feb 21 16:22:41
2008
Subject: [Bug 4] YA test
Folder: /usr/local/apache2/htdocs/bugzilla/email_in.pl -vv 2809
When this happens, the comment does *not* get posted. If I send a
message from the command line "mail" command, it works fine. I'm
guessing the latter doesn't insert the charset blurb into the content-
type: header.
I ran your perl one-liner, and it did just fine. I also tried this
variation:
% perl -w -MEncode -e 'print encode("US-ASCII", decode("iso-8859-1",
"test"));'
Here are the relevant headers from my original, outgoing message to
Bugzilla:
Mime-version: 1.0
Content-type: text/plain;
charset="US-ASCII"
Content-transfer-encoding: 7bit
This is a pretty serious problem since all of my users are on either
Entourage or Outlook. (And I'd not be surprised if this problem was
shared with many other clients, as well.)