Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Special Characters Created on a UNIX system with HP Terminal on US7ASCII
Frank van Bortel wrote:
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Martin T. wrote: >> Frank van Bortel wrote:
>> I am sorry, I did not want to imply that Oracle actually stores 7bits. >> I oc assumed that there are simply stored byte values since the >> characters are there inside the DB with the correct byte code. >> >> Still it is the wrong character set. It's like telling oracle the the >> charset is UTF8 and then inserting WE8ISO8859P1 -- it *should* work if >> you lie to Oracle about the NLS_LANG character sets, but it's still >> wrong and will get you (it got me) into trouble. >> >> cheers, >> Martin > > What would the right thing be then? DB char set = server NLS settings = > client NLS settings? Just as dangerous and wrong. >
Sorry. You lost me there.
"What would the right thing be?" Of course USING the char set you tell
the DB you are using.
If they (OP) tell the DB they use US7ASCII and then go and store
WE8ISO8859P1 in it, it is certainly not the right thing.
cheers,
Martin
p.s.: Also, in this day and age I found and find it quite horrible of Oracle to even allow any client to insert crap into VARCHAR columns just because it has the wrong NLS_ setting. (By crap I mean for instance putting invalid byte sequences into an UTF8 column) Received on Thu Jul 19 2007 - 10:49:44 CDT