PC Review


Reply
 
 
=?Utf-8?B?ZG9uYWw=?=
Guest
Posts: n/a
 
      25th Apr 2005
I am posting a text form to a cgi I wrote, and the form data sometimes contains
special characters such as % or &. I thought that these characters were
supposed to be encoded specially so they wouldn't confuse the server, but
they seem to be
sent as is. So a & in the data for example makes the cgi think that that the
field has ended. What am I doing wrong?
 
Reply With Quote
 
 
 
 
Hans Le Roy
Guest
Posts: n/a
 
      25th Apr 2005
Hi Donal,

This is not the best newsgroup to post this question, but nevertheless...
Yes, you'll have to encode them. See
http://www.astro.washington.edu/owen...cialChars.html
The exact way how to encode them will depend on how your CGI was written...

Kind regards

Hans Le Roy
MS MVP Win/IE-OE

"donal" <(E-Mail Removed)> wrote in message
news:404C2F23-70F3-4145-8B21-(E-Mail Removed)...
> I am posting a text form to a cgi I wrote, and the form data sometimes

contains
> special characters such as % or &. I thought that these characters were
> supposed to be encoded specially so they wouldn't confuse the server, but
> they seem to be
> sent as is. So a & in the data for example makes the cgi think that that

the
> field has ended. What am I doing wrong?



 
Reply With Quote
 
=?Utf-8?B?ZG9uYWw=?=
Guest
Posts: n/a
 
      26th Apr 2005
Thanks for the informative link. The complete answer seems to be that I have
to use Javascript to encode the form.
See: http://www.barelyfitz.com/projects/encoder/

Thanks again.

"Hans Le Roy" wrote:

> Hi Donal,
>
> This is not the best newsgroup to post this question, but nevertheless...
> Yes, you'll have to encode them. See
> http://www.astro.washington.edu/owen...cialChars.html
> The exact way how to encode them will depend on how your CGI was written...
>
> Kind regards
>
> Hans Le Roy
> MS MVP Win/IE-OE
>
> "donal" <(E-Mail Removed)> wrote in message
> news:404C2F23-70F3-4145-8B21-(E-Mail Removed)...
> > I am posting a text form to a cgi I wrote, and the form data sometimes

> contains
> > special characters such as % or &. I thought that these characters were
> > supposed to be encoded specially so they wouldn't confuse the server, but
> > they seem to be
> > sent as is. So a & in the data for example makes the cgi think that that

> the
> > field has ended. What am I doing wrong?

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem after problem after problem - winXP wont start! =?Utf-8?B?TWF2aXJpY2s=?= Windows XP Help 2 23rd Apr 2006 02:55 PM
Microsoft Access Object Library Version Problem (Form VBA Code Problem) Don Microsoft Access Form Coding 2 8th Mar 2004 01:00 PM
hibernation problem! problem!, Power Option problem! Farzad Hayati Microsoft Windows 2000 Hardware 2 5th Feb 2004 10:22 PM
hibernation problem! problem!, Power Option problem! Farzad Hayati Microsoft Windows 2000 Advanced Server 2 5th Feb 2004 10:22 PM
Outlook 2002 connector: problem connecting with Domino server because of NAMELookup2 problem Jean-Paul Smeets Microsoft Outlook 2 26th Sep 2003 10:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:30 PM.