• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

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
0
ItsMe
Asked:
ItsMe
  • 4
  • 4
1 Solution
 
maneshrCommented:
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.

0
 
ItsMeAuthor Commented:
so you think I should replace the ö by ö or oe ?

regards
ItsMe
0
 
maneshrCommented:
again that would work provided the E-mail client knows how to interpret & show the umlaut.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
ItsMeAuthor Commented:
This question has a deletion request Pending
0
 
ItsMeAuthor Commented:
so i can do nothing :-((
0
 
maneshrCommented:
This question no longer is pending deletion
0
 
maneshrCommented:
again that would work provided the E-mail client knows how to interpret & show the umlaut.
0
 
ItsMeAuthor Commented:
ok
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now