cma
2003-09-08 20:37:53 UTC
Hi all,
i have the following problem.
I'm using a DB2-Client V7 on a Linux-Server from a Java-Application.
This application connected to zOS(OS390)/DB2 V7 with the App- Driver
(db2java.zip). Because I can't use Unicode on the zOS/DB2, I have
disabled Unicode n the "db2cli.ini" on the DB2-Client
(disableunicode=1).
When I store data in a char-field on the zOS-Side everything works reat.
Also characters over 0xFF was converted/translated. All these haracters
where stored in the zOS/DB2 as 0x3F (I know, that I lost he information
what character it was, but it is ok).
But now my problem begin. When the Java-Application read the data, it
parsed the data with a XML-Parser. Everything works fine until it get a
character with the code 0x3F, because of codepage conversion (I think)
the application get a character with a hexcode 0x1A, and the XML-Parser
throws an exception that 0x1A is an illegal XML character.
After testing a lot, I have no more ideas, where and how I can change
settings to say, that the conversion should not be like this: over 0xFF
-> 0x3F or x3F -> 0x1A
Before you answer :-), please notice my limitations what I can
change or not:
- can't change the codepage on zOS/DB2
- can't change the translationstable on zOS/DB2 (if there is any)
- can't change the Java-Application (to handle the exception)
- can change DB2-Client-Settings
- can change the Users, so that i don't get characters over 0xFF
anylonger ;-)
Have anyone any ideas (and understand my problem)?
TIA cma
--
posted via MFF : http://www.MainFrameForum.com - USENET Gateway
i have the following problem.
I'm using a DB2-Client V7 on a Linux-Server from a Java-Application.
This application connected to zOS(OS390)/DB2 V7 with the App- Driver
(db2java.zip). Because I can't use Unicode on the zOS/DB2, I have
disabled Unicode n the "db2cli.ini" on the DB2-Client
(disableunicode=1).
When I store data in a char-field on the zOS-Side everything works reat.
Also characters over 0xFF was converted/translated. All these haracters
where stored in the zOS/DB2 as 0x3F (I know, that I lost he information
what character it was, but it is ok).
But now my problem begin. When the Java-Application read the data, it
parsed the data with a XML-Parser. Everything works fine until it get a
character with the code 0x3F, because of codepage conversion (I think)
the application get a character with a hexcode 0x1A, and the XML-Parser
throws an exception that 0x1A is an illegal XML character.
After testing a lot, I have no more ideas, where and how I can change
settings to say, that the conversion should not be like this: over 0xFF
-> 0x3F or x3F -> 0x1A
Before you answer :-), please notice my limitations what I can
change or not:
- can't change the codepage on zOS/DB2
- can't change the translationstable on zOS/DB2 (if there is any)
- can't change the Java-Application (to handle the exception)
- can change DB2-Client-Settings
- can change the Users, so that i don't get characters over 0xFF
anylonger ;-)
Have anyone any ideas (and understand my problem)?
TIA cma
--
posted via MFF : http://www.MainFrameForum.com - USENET Gateway