× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



> From: Brad Stone
> 
> So, with what I want to do, with eRPGSDK I can do:
> 
> #loadTemplate('anyfile.ext')
> #replaceData('<':'&lt;')
> #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 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-2024 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.