Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: what characterset to use?
Ben wrote:
> On Aug 23, 2:48 pm, sybra..._at_hccnet.nl wrote:
> > I'm not implying anything. I'm trying to understand. > > How do you insert an 8 bit character with a 7 bit client into a db > with a 7 bit character set? Wouldn't that be a square peg round hole > kind of thing? You of course wouldn't get the 8 bit character back out > of the 7 bit db. > > (...)
What you really need to understand is that the character sets (NLS_LANG) you tell Oracle about are ONLY there for conversion. Oracle doesn't give a damn if you have a database which is told it's UTF8 and the values residing in the VARCHAR2 columns are actually WE8ISO8859P2. Oracle doesn't care. Only if you try to retrieve this data with e.g. a JDBC driver, you will get a Java Exception telling you it could not convert the UTF8 data.
So the character sets of the clients and the DB are only there to tell oracle if it has to convert or not. And if they are the same, no conversion will take place. (And if the client "lies" you end up with crap in your DB.)
br,
Martin
Received on Fri Aug 24 2007 - 05:40:45 CDT
![]() |
![]() |