×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




I think I inadvertently gave you a bum steer. I was thinking about
character collating rather than the underlying hex.

However, I may be able to redeem myself. I think the \xhh is actually ASCII
hex rather than EBCDIC hex.

Reason I say that is that if you look at a conversion table such as this one
<https://www.ibm.com/docs/en/xl-fortran-aix/16.1.0?topic=appendix-ascii-ebcdic-character-sets>
you'll see that, for instance, capital A to G is ASCII hex 41 to 47, and if
you try this in SQL:

with foo(bar) as (
values('ABCDEFG'))
SELECT foo.bar,
regexp_instr(foo.bar,'[\x43-\x44]')
FROM foo

You get position 3, being ASCII hex'43' C, whereas EBCDIC hex'43' is: ä
(lower-case a with umlaut, in case it doesn't show properly in the browser).

If it's any help I have an unprintable character finder UDF I'm happy to
post (gives the hex value, the display value and the position in the
string).


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