Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: .net OracleClient and character sets

Re: .net OracleClient and character sets

From: Daniel Morgan <damorgan_at_exxesolutions.com>
Date: Fri, 02 May 2003 22:52:12 -0700
Message-ID: <3EB3590C.46902E3B@exxesolutions.com>


HaukiDog wrote:

> I've discovered that using OleDbCLient instead of OracleClient causes
> the difference. I'm in the middle of a .net conversion, so in order to
> maintain backwards compatibilty I had to use an OleDb provider in the
> places that dealt with the string field in question. My old code used
> OleDb in VisualBasic 6 code. Now I am using c# with the .net Oracle
> client.
>
> Here's my new question ... I figure one of two things is true
>
> 1. There is a bug in the .net OracleClient code, which causes the
> strings to get mungded
>
> or
>
> 2. The string brought back from the OracleClient is actually correct
> and I have been working with some ASCII coding all along. In which
> case, there is a way to encode the string after it returns from the
> OracleClient call, thus achieving my backwards compatability.
>
> Any one have any insight to this?

A UTF8 database returns whatever characters are stored within. Store US ASCII ... get US ASCII. Store Kanji ... get Kanji. My expectation would be that it would be typical of Microsoft to be less than enthusiastic about supporting a competitive product.

Take what comes back and write it out to a text file. Then examine that which has been written.

--
Daniel Morgan
http://www.outreach.washington.edu/extinfo/certprog/oad/oad_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Sat May 03 2003 - 00:52:12 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US