If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > store kannada characters in db2 database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-17-11, 12:29
pratapd pratapd is offline
Registered User
 
Join Date: Jul 2010
Posts: 8
store kannada characters in db2 database

Hello,

Could some one let me know how to store kannada characters in db2 database ?

I am using db2 v9.1 fp10 on windows machine.

Thanks,
Pratapd
Reply With Quote
  #2 (permalink)  
Old 03-17-11, 12:59
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
You need use UTF-8 when the database is created. Check the db cfg and see what the value of "Database code set." Once the database is created, it cannot be changed.

You can search for DBCS (double byte character set) in DB2 for more information.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390

Last edited by Marcus_A; 03-17-11 at 13:34.
Reply With Quote
  #3 (permalink)  
Old 03-17-11, 13:07
pratapd pratapd is offline
Registered User
 
Join Date: Jul 2010
Posts: 8
thanks for the quick reply!!
Yes.. I did create a UTF-8 database.
But I am unable to copy kannada characters on to my db2 command window for inserting rows into my table.. any idea how to do this on a windows machine ?

Regards,
Pratapd
Reply With Quote
  #4 (permalink)  
Old 03-18-11, 03:54
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
Hi,

what error messages do you get?
If you create a table with char(10) it can store 10 bytes. UTF-8 Characters may use two or more Bytes. So you may need to create larger textfields.

Cheers,
nvk
Reply With Quote
  #5 (permalink)  
Old 03-18-11, 07:28
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
described here: Unicode support with DB2
Reply With Quote
  #6 (permalink)  
Old 03-18-11, 07:55
mathukumali mathukumali is offline
Registered User
 
Join Date: Jul 2010
Location: ISHHHH
Posts: 130
Quote:
Originally Posted by dr_te_z View Post
described here: Unicode support with DB2
nice link learned a lot
__________________
WiTh Tnks & ReGaRdS
mAtHuKuMaLi
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On