Hi,

and thanks for all the previous suggestions regarding email modules. Now it turned out 
that my ISP refuses to let me install *any* additional Perl module on the server, so I 
have to use sendmail.

This is mostly fine, since I only send short text messages, but it breaks down when it 
comes to 8-bit characters.

The page the HTML form is included in is utf-8 encoded. But I set the form to accept 
iso-8859-1 form data like this:

<form action="cgi-bin/mail_form.pl" method="post" accept-charset="iso-8859-1" 
enctype="application/x-www-form-urlencoded">

Now my script pipes the processed data to sendmail like this:

open MAIL, "|$sendmail -oi -t" or die "Can't open pipe to $sendmail: $!\n";
print MAIL <<"EOF";
To: $recipient
From: $name <$sender>
Subject: Website-Nachricht jan-eden.de
Content-Type: text/plain; charset="ISO-8859-1"
$message
EOF

From my own Mac (running OS X), the special characters come out fine (όδφί), when 
setting the charset for the email message like above, but from a standard PC (Windows 
98), I get "üâÀüâÀüâÀΓ" for a series of 8-bit characters.

Is there anything I can do about this? How do I correctly encode 8-bit characters when 
I do not have access to a module?

Thanks,

Jan
-- 
There are 10 kinds of people:  those who understand binary, and those who don't

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to