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



>The ASCII codes are:
>x'BC', x'BD', x'BE' or for "¼", "½", "¾" respectively.
>188-190 Decimal.
>The EBCDIC are:
>x'B7', x'B8', x'B9', "¼", "½", "¾" respectively.
>183-185 Decimal.

Depending on your code page, this may be true or not.  It is rarely a good
idea to hard-code hex values rather than the actual characters because then
code page translation is defeated.  I don't understand the original
question, which is

>Is there a way to search for "½" and "¼" characters in a string using
>RPG or CL?  I need to convert these special characters so that the
>XML parser can understand.

I may be way off base, but why won't this work?

pos = %scan('½': string)
if pos > 0
  do stuff
endif

In CL, I'd use QCLSCAN...

  --buck




As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.