|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
ASCII/EBCDIC based codepagesHi,
I am looking for an API/function which can list all the ASCII/EBCDIC based codepages. One way I can think of doing it is by converting some ASCII/EBCDIC characters from each codepage to Unicode and back. Then see if the characters are still ASCII/EBCDIC. Not sure if this will work always. Is there any other way of doing it? Thanks in advance! Regards, Amit ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ icu-support mailing list - icu-support@... To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-support |
|
|
Re: ASCII/EBCDIC based codepagesAmit,
My experience regarding ASCII/EBCDIC has been on the z/OS platform, with ICU deployed in the Unix System Services (USS) environment. I agree, trying to find those code pages that are EBCDIC based is not very straightforward. I have worked the problem from a reverse approach on z/OS. I've used some documentation related to the z/OS C/C++ compiler. Here's a link. I've found this most helpful. http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/CBCPG170/APPENDIX1.4.1?SHELF=CBCBS171&DT=20060501163751 John B. Young IBM Tivoli Identity Manager Tivoli Software, IBM Software Group Notes: John B Young/Irvine/IBM@IBMUS Internet: jbyoung@... Office Phone: 714-438-5218, T/L: 925-5218 "In theory, theory and practice are the same. In practice, theory and practice are different." - unknown "Tibarewal, Amit" <atibarewal@...> Sent by: icu-support-bounces@... 05/14/2007 03:35 AM Please respond to ICU support mailing list <icu-support@...> To <icu-support@...> cc Subject [icu-support] ASCII/EBCDIC based codepages Hi, I am looking for an API/function which can list all the ASCII/EBCDIC based codepages. One way I can think of doing it is by converting some ASCII/EBCDIC characters from each codepage to Unicode and back. Then see if the characters are still ASCII/EBCDIC. Not sure if this will work always. Is there any other way of doing it? Thanks in advance! Regards, Amit ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ icu-support mailing list - icu-support@... To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-support ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ icu-support mailing list - icu-support@... To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-support |
|
|
Re: ASCII/EBCDIC based codepagesGenerally, determining which codepages are EBCDIC or ASCII based is easy.
If \u0020 roundtrip converts to \x20, then it's ASCII (or one of its variants) If \u0020 roundtrip converts to \x40, then it's EBCDIC (or one of its variants) \u0020 can convert to other values, or it may not convert at all. So you should be aware of those conditions. I use a similar method when displaying the ASCIIness or EBCDICness of each codepage in Converter Explorer http://demo.icu-project.org/icu-bin/convexp If you're looking at ICU's Converter Explorer, you will want to look at the "Is ASCII [\x20-\x7E] compatible?" value when you zoom in on a specific converter in ICU. George Rhoten IBM Globalization Center of Competency/ICU San José, CA, USA http://www.icu-project.org/ John B Young/Irvine/IBM@IBMUS Sent by: icu-support-bounces@... 05/14/2007 03:16 PM Please respond to ICU support mailing list <icu-support@...> To ICU support mailing list <icu-support@...> cc Subject Re: [icu-support] ASCII/EBCDIC based codepages Amit, My experience regarding ASCII/EBCDIC has been on the z/OS platform, with ICU deployed in the Unix System Services (USS) environment. I agree, trying to find those code pages that are EBCDIC based is not very straightforward. I have worked the problem from a reverse approach on z/OS. I've used some documentation related to the z/OS C/C++ compiler. Here's a link. I've found this most helpful. http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/CBCPG170/APPENDIX1.4.1?SHELF=CBCBS171&DT=20060501163751 John B. Young IBM Tivoli Identity Manager Tivoli Software, IBM Software Group Notes: John B Young/Irvine/IBM@IBMUS Internet: jbyoung@... Office Phone: 714-438-5218, T/L: 925-5218 "In theory, theory and practice are the same. In practice, theory and practice are different." - unknown "Tibarewal, Amit" <atibarewal@...> Sent by: icu-support-bounces@... 05/14/2007 03:35 AM Please respond to ICU support mailing list <icu-support@...> To <icu-support@...> cc Subject [icu-support] ASCII/EBCDIC based codepages Hi, I am looking for an API/function which can list all the ASCII/EBCDIC based codepages. One way I can think of doing it is by converting some ASCII/EBCDIC characters from each codepage to Unicode and back. Then see if the characters are still ASCII/EBCDIC. Not sure if this will work always. Is there any other way of doing it? Thanks in advance! Regards, Amit ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ icu-support mailing list - icu-support@... To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-support |
| Free embeddable forum powered by Nabble | Forum Help |