1,565 pts.
 CGI loses percent sign
We have a web app ( a CGI) written in RPGLE and HTML that prompts for several data fields and writes a record to our web iseries.

When the Comments field contains a percent sign ("%"), the data file ends up without that symbol and the next character is gone, too.

Is there a simple way to fix this ?

Example text   ...   "test % sign"  comes in as  "test  ign" - 3 less characters.

 

Mike L.



Software/Hardware used:
AS/400
ASKED: November 4, 2009  9:38 PM
UPDATED: November 5, 2009  3:39 PM

Answer Wiki:
A percent sign, along with the plus sign and ampersand, are special characters. You need to send them to your page encoded. See this thread: http://archive.midrange.com/web400/200207/msg00106.html
Last Wiki Answer Submitted:  November 4, 2009  11:05 pm  by  Teandy   5,830 pts.
All Answer Wiki Contributors:  Teandy   5,830 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Thanks, that helps.

Mike L.

 1,565 pts.