Remember Charlie Brown?


Thanks Jim :-)

-----Original Message-----
From: Jim Langston []
Sent: Tuesday, December 18, 2001 4:54 PM
To: ''
Subject: RE: [WEB400] unescape()

try '\n' instead.

-----Original Message-----
From: Joel R. Cochran []
Sent: Tuesday, December 18, 2001 1:58 PM
To: ''
Subject: [WEB400] unescape()

I have a CGI-RPGIV web site.  I run all incoming parms through an #escape()
routine to convert special codes (like %2F for '/') to their actual
characters.  I have added a <textarea> to one of my screens and for the
first time I have to deal with forced line breaks (enter).  The code comes
in as '%0D%0A'.  I tried converting this to '/n' thinking that the
JavaScript that re-populates the form later would read that and break, but
instead it actually shows the '/n' as part of the text.

My conclusion is that I need a simple #unescape() routine, but what do I
convert this to so that the browser will understand this is a line break?

Many thanks,

This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email:
To subscribe, unsubscribe, or change list options,
or email:
Before posting, please take a moment to review the archives

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2022 by 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.