Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > Character set conversion

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-27-08, 13:45
jkh jkh is offline
Registered User
 
Join Date: Mar 2004
Posts: 3
Character set conversion

Hi,

Assuming client system's character set was ZHS16GBK ( 2 bytes for each character ), and both server's and Oracle database system's character set was UTF-8 ( 3 bytes for each character ).

If we run SQLPLUS from client system ( with Oracle client installed ) and insert a Chinese character ( 2 bytes per character) into a table, will the Chinese character be automatically converted to UTF-8 ( 3 bytes per character ) when it was stored in Oracle database table.

Do we need to set anything in order for the conversion to take place automatically?

Thanks & best regards,
Reply With Quote
  #2 (permalink)  
Old 06-27-08, 14:09
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 3,564
>will the Chinese character be automatically converted to UTF-8 ( 3 bytes per character ) when it was stored in Oracle database table.

I am curious as to why you thought it would be better to ask this question here as opposed to looking in the database to see the ACTUAL results?
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
Reply With Quote
  #3 (permalink)  
Old 06-27-08, 23:06
jkh jkh is offline
Registered User
 
Join Date: Mar 2004
Posts: 3
As I did not get the expected result, so I'm curious as what setting that will make it works. My client and server is on AIX.

Thanks & best regards,
Reply With Quote
  #4 (permalink)  
Old 06-28-08, 00:45
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 3,564
>As I did not get the expected result
Depending upon EXACTLY what you did from where, what you saw may not be what you have.

In other words, the client you used to look at the contents can impact what you saw.
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
Reply With Quote
  #5 (permalink)  
Old 06-29-08, 23:38
jkh jkh is offline
Registered User
 
Join Date: Mar 2004
Posts: 3
Hi,

Thanks for the reply.
But I just want to have a confirmation that Oracle will do a character set conversion in the above situation. Since I don't get a clear clue from Oracle manual for that question.

Thanks & best regards,
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

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