× 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.



On Fri, 03 Nov 2006 12:54:41 -0500
 Barbara Morris <bmorris@xxxxxxxxxx> wrote:
A fairly easy way to handle this is to do the processing
in ucs2.  (At
least, it's easy, if your string doesn't have more than
16383 total
characters, since that's the maximum number of UCS2
characters that RPG
supports.)

D lparen     c              %ucs2('(')
D rparen     c              %ucs2(')')
D apos       c              %ucs2('''')
D string     s      16383c  varying
   string = %ucs2(charstring);
   --- use all the same code as you had before 
   ---   p = %scan(lparen : string);  etc
   charstring = %char(string);


Thanks again for this, Barbara.  It seems to have gotten me
one step further.

The only issue I'm having now is it seems the sI and sO
characters are either getting replaced or not transferred
properly, but I need to find out where that is happening.

It seems to be happening in the WRITE to the stream file.

Brad
www.bvstools.com

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.