|
Thanks Bruce for very well structured questions. I'm also confused. What I meant by saying, that 1122 and 37 is the same, is the fact, that setting machine primary language to 1122 or to 37 has the same effect. Luckily OS/400 is not translated to Estonian. My program seems to work at 37 and respectively (Ä) has a code of 0x63 in my program char c; c = 'Ä' ; printf("%02X\n", c) ; gives 63 Now PC sends letter "Ä", that is received on this particular AS/400 as 0x24 rather than 0x63. All basic part of the table (latin letters and numbers) are not scrambled. Actually I know have a feeling, that problem is rather on the PC side, that does wrong conversion.... > -----Original Message----- > From: Bruce Vining [mailto:bvining@xxxxxxxxxx] > Sent: Wednesday, September 21, 2005 9:34 PM > To: C programming iSeries / AS400 > Subject: RE: [C400-L] Local characters encoding problem > > > I'm a bit confused (admittedly easily done) by this chain of notes. > > CCSID 1122 (EBCDIC Estonian) is not identical to CCSID 37 (EBCDIC > USA/Canada). The Latin capital A with umlaut/diaeresis (Ä) > for instance is > x'63' in CCSID 37 and x'7B' in CCSID 1122. And neither CCSID > would use a > value of x'0A' or x'24', as was suggested in earlier notes, > to represent Ä. > > Can you provide the input value on the PC, the value > initially received in > the iSeries application, the value you want to receive, the > default job > CCSID of the receiving job, and who (what utility, > application, etc) is > providing the ASCII to EBCDIC conversion for the Ä. Values > such as x'0A' > and x'24' suggest some form of round trip substitution is > being performed, > but with the CCSIDs you mention there should be no need for such an > operation (the Ä exists in both CCSIDs), or various control > sequences are > being inserted into the data. In either case there's > something going on > that we need additional information about in order to understand what > you're seeing. > > Bruce Vining > > > > > > "Jevgeni > > Astanovski" > > <Jevgeni.Astanovs > To > ki@xxxxxxxx> "C programming iSeries > / AS400" > Sent by: <c400-l@xxxxxxxxxxxx> > > c400-l-bounces+bv > cc > ining=us.ibm.com@ > > midrange.com > Subject > RE: [C400-L] Local > characters > encoding problem > > 09/21/2005 09:40 > > AM > > > > > > Please respond to > > C programming > > iSeries / AS400 > > > > > > > > > > Actually 1122 is identical to 37.... > So all bytes are left unchanged when applying this conversion. > I have a feeling, that 437 must be somewhere... > > > > -----Original Message----- > > From: Elvis Budimlic [mailto:ebudimlic@xxxxxxxxxxxxxxxxxxxxxxxxx] > > Sent: Wednesday, September 21, 2005 5:15 PM > > To: 'C programming iSeries / AS400' > > Subject: RE: [C400-L] Local characters encoding problem > > > > > > 00037 should be "to", so that makes 1122 as "from". > > I would have thought ASCII is 00437 CCSID, but you know best > > what CCSID it > > comes in. Now that I think about it 00437 may be just > > English ASCII and it > > sounds like you may be dealing with non-English ASCII CCSID. > > > > Elvis > > > > -----Original Message----- > > Subject: RE: [C400-L] Local characters encoding problem > > > > Here's misunderstanding. If I have a byte 0xYY, that came to > > a job, having > > CCSID of, say, 1122. I know, that the PC program sent letter > > "Ä" in ASCII > > and it have become 0xYY on the AS/400. If I will manage to > > convert it to "Ä" > > again, then everyhing is OK. > > > > So I assumed, that rather TOCCSID must be job's CCSID and > FROMCCSID is > > unknown.... > > > > My job's CCSID is nice 00037, but is it "from" or "to"? > > > > > > > > -- > > This is the C programming iSeries / AS400 (C400-L) mailing list > > To post a message email: C400-L@xxxxxxxxxxxx > > To subscribe, unsubscribe, or change list options, > > visit: http://lists.midrange.com/mailman/listinfo/c400-l > > or email: C400-L-request@xxxxxxxxxxxx > > Before posting, please take a moment to review the archives > > at http://archive.midrange.com/c400-l. > > > > > > -- > This is the C programming iSeries / AS400 (C400-L) mailing list > To post a message email: C400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/c400-l > or email: C400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/c400-l. > > > > > -- > This is the C programming iSeries / AS400 (C400-L) mailing list > To post a message email: C400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/c400-l > or email: C400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/c400-l. > >
As an Amazon Associate we earn from qualifying purchases.
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.