×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




You need to use the ENCODE() procedure provided with CGIDEV2. It will
handle strings up to 32767. It will only handle the characters ", &, <, >.
Make sure that the input field isn't too close in size to 32767 or your
output field will be truncated.


Chuck


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Florin Todor - YYZ Concord
Sent: Monday, September 28, 2009 12:02 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Special Characters with CGIDEV2


Hello,



I am trying to display Spool files in a browser using RPG and CGIDEV2
functionality; the problem appears when inside the Spool file there are
special characters like & < > (I update the HTML variables using
updHTMLvar() function)

How is it possible to "trick" the XML to not consider these characters
as special ones? I found a function htmlentities(), but it seems like
this function is not available with CGIDEV2.



Thanks,



Florin Todor

<mailto:ftodor@xxxxxxxxxxxxxxxx>




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.