Solved

Wrong decoding ?

Posted on 2000-02-21
8
157 Views
Last Modified: 2013-12-25
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
Comment
Question by:ItsMe
  • 4
  • 4
8 Comments
 
LVL 16

Expert Comment

by:maneshr
ID: 2546273
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
 

Author Comment

by:ItsMe
ID: 2546509
so you think I should replace the ö by ö or oe ?

regards
ItsMe
0
 
LVL 16

Expert Comment

by:maneshr
ID: 2546573
again that would work provided the E-mail client knows how to interpret & show the umlaut.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:ItsMe
ID: 2546585
This question has a deletion request Pending
0
 

Author Comment

by:ItsMe
ID: 2546587
so i can do nothing :-((
0
 
LVL 16

Expert Comment

by:maneshr
ID: 2546623
This question no longer is pending deletion
0
 
LVL 16

Accepted Solution

by:
maneshr earned 40 total points
ID: 2546624
again that would work provided the E-mail client knows how to interpret & show the umlaut.
0
 

Author Comment

by:ItsMe
ID: 2547279
ok
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
The viewer will learn how to dynamically set the form action using jQuery.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question