Hi,
I am facing some problem while inserting some non English characters to DB2 server from my java application. We are not able to retrieve the same record when searched with the same non English string. The data I tried is “£¤¥®¶ÀÆÇÐÉÎÕÛÜÞßàñéïðĂąΏΓΔπήЄЊЯҖכظٔⁿ∑┴♠☺♫שׁﭯ שׁﭯﻼ” (To be frank, I don’t know which language it is…This is a bug reported by one of our client) .
Our observations/findings
1. On research, we noticed that the non english string which we entered is not saved in the database as such. We found that some of the characters are replaced with blocks ( ���������� )
2. On debugging the java code, we found that is is passed correctly to the statement object for insertion.
3. We tried to replicate the same issue by connecting to Oracle server (instead of DB2), but couldn’t reproduce this issue. There it is working fine.
Our findings, makes us assume that the issue is with either
i. db2 database configuration
ii. IBM db2 java thin driver
Our configuration setting are as follows:
1. Db2 server version – 8.1
2. db2 database created to support utf-8is as follows:
3.
CREATE DATABASE TESTDATABASE ON C: ALIAS TESTDATABASE USING CODESET UTF-8 TERRITORY US COLLATE …….
……………….
4. Configured the environment variable () in DB2 Server
Can any one please, let me know the reason for this bug. Is it related to the DB2 server we are using or with the driver or is there any other reasons. Do I need to run any patch?????
Thanks.