Perfect. Thanks a lot, Chuck!
Florin Todor
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Chuck Wannall
Sent: Monday, September 28, 2009 5:52 PM
To: 'RPG programming on the IBM i / System i'
Subject: RE: Special Characters with CGIDEV2
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.