H
Håkan Garneij
Hi all,
I get strange character conversions when fetching CLOB fields in Oracle 8i.
When looking at the data in the database with TOAD the characters seem to be
correctly stored.
The character ''' when fetched is represented by a square (unknown?) in a
string type in C#.
The int value for this character is supposedly 65533 but I don't think this
value is correct either since that is too big for a char.
Can any parameters to the connectionstring fix this?
I'm using the following sample connectionstring:
Data Source=oracle8;User ID=scott;Password=tiger;Pooling='false';
Code sample:
....
DataSet oDs = new DataSet();
OracleDataAdapter oDa = new OracleDataAdapter( String.Format( SQL,
parameters), oConnection ) ;
oDa.Fill( oDs );
....
foreach ( DataRow oDr in oDs.Tables[0].Rows )
sLongText = oDr["LongText"].ToString();
....
Regards
Håkan
I get strange character conversions when fetching CLOB fields in Oracle 8i.
When looking at the data in the database with TOAD the characters seem to be
correctly stored.
The character ''' when fetched is represented by a square (unknown?) in a
string type in C#.
The int value for this character is supposedly 65533 but I don't think this
value is correct either since that is too big for a char.
Can any parameters to the connectionstring fix this?
I'm using the following sample connectionstring:
Data Source=oracle8;User ID=scott;Password=tiger;Pooling='false';
Code sample:
....
DataSet oDs = new DataSet();
OracleDataAdapter oDa = new OracleDataAdapter( String.Format( SQL,
parameters), oConnection ) ;
oDa.Fill( oDs );
....
foreach ( DataRow oDr in oDs.Tables[0].Rows )
sLongText = oDr["LongText"].ToString();
....
Regards
Håkan