Solved

Wrong decoding ?

Posted on 2000-02-21
8
160 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

 

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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

740 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