| 
 | 
> From: Brad Stone
> 
> So, with what I want to do, with eRPGSDK I can do:
> 
> #loadTemplate('anyfile.ext')
> #replaceData('<':'<')
> #writeSection
> 
> and I'm done.  What I'm doing is showing _why_ in the eRPG
> SDK I chose to not use delimited tags for replacement
> fields.
Of course, if you were using Java instead of RPG, you'd include the
wonderful Open Source htmlparser.jar and simply do this:
        out.write(Translate.encode(myOutput));
This would convert ALL non-ISO-8859-1 characters in the String myOutput
to their correct character entity references at one go (as opposed to
the multiple calls to #replaceData that you have to do).  But hey, why
use a power tool on a screw when you can bang it in with that big old
RPG hammer?
<g>
Joe
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.