|
The real problem is that there are two common representations of square brackets. The code-points are: x'AD' for [ and x'BD' for ] which seem to be the 'standard' S/370 square brackets and also x'BA' for [ and X'BB' for ] which seem to be the AS/400 'preferred' square brackets. (These are the ones that display properly) ASCII uses x'5B' and x'5D' for square brackets and you need to either use the correct translation table or use the expected code-points. Make sure the hex representation of the square brackets is the 'preferred' form. Often the problem is either that the ASCII square brackets are mapped to the S/370 square brackets rather than the AS/400 ones or your emulator is using S/370 square brackets so they may display corectly but are not converted correctly by the AS/400 translation tables. The same problem arises when writing C code on the AS/400. C supports trigraphs for such situations (and C/400 supports both forms of square bracket) but I'm not sure if Java does. In most cases you simply need to ensure that your emulator has the keyboard mapped correctly to pass BA/BB when you use the PC square brackets keys. Of course, if you are not using EBCDIC codepage 37 and ASCII code page 437/819 (and possibly 850) then the rules change and you need to determine the proper code-points for square brackets on your system. Regards, Simon Coulter. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» «» FlyByNight Software AS/400 Technical Specialists «» «» Eclipse the competition - run your business on an IBM AS/400. «» «» «» «» Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 «» «» Fax: +61 3 9419 0175 mailto: shc@flybynight.com.au «» «» «» «» Windoze should not be open at Warp speed. «» «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +---
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.