Solved

Wrong decoding ?

Posted on 2000-02-21
8
156 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
Comment Utility
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
Comment Utility
so you think I should replace the ö by ö or oe ?

regards
ItsMe
0
 
LVL 16

Expert Comment

by:maneshr
Comment Utility
again that would work provided the E-mail client knows how to interpret & show the umlaut.
0
 

Author Comment

by:ItsMe
Comment Utility
This question has a deletion request Pending
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:ItsMe
Comment Utility
so i can do nothing :-((
0
 
LVL 16

Expert Comment

by:maneshr
Comment Utility
This question no longer is pending deletion
0
 
LVL 16

Accepted Solution

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

Author Comment

by:ItsMe
Comment Utility
ok
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now