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



I did some more debugging and I'm finding something else.

I'm reading the data from a socket and converting it from 1208 to 37.
But the data I read in is x'62B8' not x'C2BD' as would be expected, so
maybe I'm barking up the wrong tree.

On Thu, Nov 4, 2010 at 1:42 PM, Bradley Stone <bvstone@xxxxxxxxx> wrote:
I'm having an issue with iconv when converting CCSID 1208 to 37.

Special double byte characters don't seem to be converting back to
their equivalent single byte character.

For example, the 1/2 symbol which in EBCDIC 37 is x'B8' and 1208 is x'C2BD'.

Converting from 37 to 1208 results in a proper conversion from SBCD to
DBCS.  But then going backwards iConv spits out an error 3021 "The
value specified for the argument is not correct".

I decided to go ahead and test with Scott's HTTPAPI as well and
although it doesn't throw the error, the conversion appears to be
wrong and ends up as x'62B8'.

First it seems as if iconv doesn't like converting back to EBCDIC, and
when it does it doesn't make it a single byte... the error its
throwing doesn't make much sense to me.  :)

Any ideas?


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.