Solved

Wrong decoding ?

Posted on 2000-02-21
8
158 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

838 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