473,408 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

DB2 issue for some Non English Characters

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.
Dec 6 '06 #1
3 2667
r035198x
13,262 8TB
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.
You need a user defined function (UDF for this).

This should shed some light

http://www-128.ibm.com/developerwork.../dm-0602doole/
Dec 6 '06 #2
Thanks for your update. I will try this out.
But it seems that the link which you have provided is related to Sorting functions. Will this fix my issue of data getting saved in different format (and so not able to retrieve it using the user entered value).

Once agian thanks for your immediate reply.
Dec 6 '06 #3
r035198x
13,262 8TB
Thanks for your update. I will try this out.
But it seems that the link which you have provided is related to Sorting functions. Will this fix my issue of data getting saved in different format (and so not able to retrieve it using the user entered value).

Once agian thanks for your immediate reply.
Oh the reason I thought about it is because a sort is done everytime a retrieve is done. Here is an explanation from Neopa
http://www.thescripts.com/forum/thread570905.html
Dec 6 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Ricky Romaya | last post by:
Hi, Anybody could show me a regex for capturing words (alphas, without numerics) in languages other than english (languages with special characters i.e. french, german)? I've tried '+' but the...
8
by: Beznas | last post by:
Hi All; I'm trying to create an ASP function called CleanX that removes the punctuation and some characters like (*&^%$#@!<>?"}|{..) from a text string I came up with this but It...
3
by: Elie Grouchko | last post by:
Hi All I am submitting a form to IIS 5.0, the CODEPAGE is set to 1252 and the charset is 'iso-8859-1'. I noticed that if I type information in a language different from English I get data...
3
by: Ron M | last post by:
I am sure this is a simple issue, but being a beginner I am struggling. In the following js function I am attempting to make sure no numbers are within "name" controls. I want to pass the text...
18
by: OrenFlekser | last post by:
Hi I've posted this message couple of days ago, but I can't find it now, so sorry if you see it twice... Anyways - I have a text box, and I want my users to be able to write only in english...
1
by: tony.pahl | last post by:
We are converting a data warehouse to a Unicode database to get ready for multilingual support. If we will have 95% of our data in English as we currently do, and less than 5% in other foreign...
10
by: Samuel | last post by:
Hi I am trying to read text files that are saved in ANSI format with Unicode characters such as French e German big S etc, and as I read the file these characters appear as squares etc. I...
10
by: LayneMitch via WebmasterKB.com | last post by:
Hello. I'm trying to figure out why this isn't working... <html><head><title>Prob.11</title> <script type="text/javascript"> function attachHandlers { var...
3
by: Terry IT | last post by:
hi, i've some C and C++ code written. I'll speak about the C code here. All of the text user interface is with printfs and scanf. They are all ascii characters. They are working well on english ....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.