Link to home
Create AccountLog in
Avatar of ItsMe
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$$$$$.tmp";
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
Avatar of maneshr
maneshr

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.

Avatar of ItsMe

ASKER

so you think I should replace the ö by ö or oe ?

regards
ItsMe
again that would work provided the E-mail client knows how to interpret & show the umlaut.
Avatar of ItsMe

ASKER

This question has a deletion request Pending
Avatar of ItsMe

ASKER

so i can do nothing :-((
This question no longer is pending deletion
ASKER CERTIFIED SOLUTION
Avatar of maneshr
maneshr

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of ItsMe

ASKER

ok