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 > problem with encoding

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-15-08, 09:26
Marvin_ru Marvin_ru is offline
Registered User
 
Join Date: Aug 2008
Posts: 2
problem with encoding

There is a db2 server : DB2 OS/390 8.1.0,

procedure, that simply inserts data into table ins_prib_k('PR','657803','A','3030030',5,1100,'20' ,'1',2111,'З717818','864300','242005','100001','13 134131','05','1222',' ','ОАО СинтеЗ')

One of the parameters contains cyrillic letters('ОАО СинтеЗ').

In case procedure is called from .net WebService using DB2Command object, cyrillic letters get into db in form like : 'ОАО СинтеЗ'

If i call the same procedure from IBM DB2 client, or from other client (for example Quest Central for DB2), everything is fine.



what is the problem ?
Reply With Quote
  #2 (permalink)  
Old 08-15-08, 17:11
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Quote:
Originally Posted by Marvin_ru
'ОÐ�О СинтÐ& #181;З'
This is clearly an UTF-8 issue: read in groups of two, except for the space, the above are the 9 two-byte UTF-8 encodings for the Cyrillic text 'ОАО СинтеЗ' to be inserted.
So in this case apparently the server received the correct bytes, but did not interpret them as UTF-8 as it should have done.
Verify the communication settings between your client (.net) and the server, and make sure it is set to UTF-8 (unicode).
(Sorry, I don't know anything about dotnet, so I cannot be of any more help...)
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/

Last edited by Peter.Vanroose; 08-15-08 at 17:15.
Reply With Quote
  #3 (permalink)  
Old 08-25-08, 01:48
Marvin_ru Marvin_ru is offline
Registered User
 
Join Date: Aug 2008
Posts: 2
I tried to convert procedure call to different encodings. No luck.

Tried to find DB2Command or DB2Connection properties, related to encoding; Still no luck.
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