× 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 02/03/2007, at 2:55 AM, Brad Stone wrote:

Any of you gurus out there know what's going on?  Is this
just a "no-no" character for EBCDIC machines?

I see James has corrected the appalling ignorance regarding the name of this symbol. I would point out that Karat is a US variant spelling used for Gold purity. The rest of the English-speaking world spells it as Carat. You're obviously not alone because an earlier append showed an IBM message CPI3728 referring to the "tilda" character (meaning ~) which is correctly known as a tilde. Ignorance might be bliss but I find it simply embarrassing. Anyway, back to the question at hand:

Check your code again.

EBCDIC X'B0' in CCSID 37 is the caret symbol ^

iconv() correctly converts this to ASCII X'5E' in CCSID 819

That's exactly what you want. I tested this three ways:
        1) Using my own tool PRTICONV
2) Using EDTF to create a CCSID 819 stream file containing a caret then using the hex display of DSPF to view the data. 3) Using DMP to dump the stream file and view the hex value in the spooled file

Using the other information provided by James, namely that EBCDIC multinational (i.e., CCSID 500) has the caret at X'5F' and Spanish (CCSID 284) has the caret at X'BA' I found that iconv() correctly converts both of these to ASCII X'5E' in CCSID 819.

Given that all these methods DO work as expected the likely culprit is your code or the character you are converting is not really a caret.

Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         OS/400, i5/OS Technical Specialists

   http://www.flybynight.com.au/
   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175                                   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------



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.