ItsMe
asked on
Wrong decoding ?
Hi ! I'm using a form2mail similar script:
Decoding URL Data:
$buffer = $ENV{'QUERY_STRING'};
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9] )/pack("C" , hex($1))/eg;
$value =~ s/~!/ ~!/g;
$FORM{lc($name)} = $value;
...
Sending it:
$mfile = $securescpath."mail$$$$$.t mp";
open (mail, ">$mfile") or &critfehler ('Interner Fehler beim Absenden der Bestellung.');
print mail "Kundenbestellung (Auftrag) / Bestaetigung:\n\n";
print mail "Warenkorb:\n";
Ok, so far it works but "ö" "ß" "ä" "@" and so on are shown as e.g. "@" %40
Why ???? I already decoded the URL. This happens in Netscape and Outlook !
regards
ItsMe
Decoding URL Data:
$buffer = $ENV{'QUERY_STRING'};
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9]
$value =~ s/~!/ ~!/g;
$FORM{lc($name)} = $value;
...
Sending it:
$mfile = $securescpath."mail$$$$$.t
open (mail, ">$mfile") or &critfehler ('Interner Fehler beim Absenden der Bestellung.');
print mail "Kundenbestellung (Auftrag) / Bestaetigung:\n\n";
print mail "Warenkorb:\n";
Ok, so far it works but "ö" "ß" "ä" "@" and so on are shown as e.g. "@" %40
Why ???? I already decoded the URL. This happens in Netscape and Outlook !
regards
ItsMe
i think this is not due to something wrong in your script, but due to the inability of these E-mail clients to understand extended characters.
ASKER
so you think I should replace the ö by ö or oe ?
regards
ItsMe
regards
ItsMe
again that would work provided the E-mail client knows how to interpret & show the umlaut.
ASKER
This question has a deletion request Pending
ASKER
so i can do nothing :-((
This question no longer is pending deletion
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
ok