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 > Sybase > BCP - Unix vs Sybase character set error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-27-01, 11:13
imaystre imaystre is offline
Registered User
 
Join Date: Dec 2001
Posts: 3
BCP - Unix vs Sybase character set error

BCP - after BCP is finished with no errors - I get the msg., some characters could not be converted, Server And Client character set may not be the same, therefore no data is saved in the Sybase Data base .
There are English and French text. I'm having problems with the French text, some French text is accepted and some are not. When I import and save the data from Powerbuilder, the data gets saved in the Sybase database with some French character conversion errors.

Last edited by imaystre; 12-28-01 at 08:56.
Reply With Quote
  #2 (permalink)  
Old 12-28-01, 22:46
ffeingol ffeingol is offline
Registered User
 
Join Date: Oct 2001
Posts: 10
What character set do you have Sybase set to? You can execute a sp_helpsort to get the character set and sort order.

We have all our servers set to ISO_1 and I don't remember any issues with French (or German) characters on our servers.

Frank
__________________
Content Manager Webmasters Resources
www.serverexpert.com/ Help with servers and the software that they run.
Reply With Quote
  #3 (permalink)  
Old 01-04-02, 11:07
imaystre imaystre is offline
Registered User
 
Join Date: Dec 2001
Posts: 3
Thank's for the info. My sybase server has the language set to ISO_1. But I still get the error messages when a french character is in the data.
msg > some characters could not be converted, client and server character set are not the same.
Reply With Quote
  #4 (permalink)  
Old 01-04-02, 11:14
ffeingol ffeingol is offline
Registered User
 
Join Date: Oct 2001
Posts: 10
Hmm. Do you know what character set/code page the Unix box is running? You might try the -J parameter on the BCP to tell it the client character set.

You might want to look at which character sets you have loaded in Sybase. On our servers we always load:

ascii_8
bin_iso_1
cp437
cp850
iso_1
mac
roman8

You can check what's loaded on your box by running:

select name
from master..syscharsets
order by name

Frank
__________________
Content Manager Webmasters Resources
www.serverexpert.com/ Help with servers and the software that they run.
Reply With Quote
  #5 (permalink)  
Old 01-04-02, 11:19
imaystre imaystre is offline
Registered User
 
Join Date: Dec 2001
Posts: 3
thanks frank

the character set in sybase is the same as you described - 8 selections
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