Hi,
I have problem of displaying Arabic Characters on my webpage ..
Problem is Data that is stored in Oracle Database is non-unicode. Now
I am getting Data from Oracle Through OracleDataReader Object
OracleDataReader myReader = OracleHelper.ExecuteReader()
I cannot use GetString() method as it will not return Proper Characters.
so I Tried GetBytes() Methods.
byte[] byteCname;
while (myReader.Read())
{
int CNUM = myReader.GetInt32(0);
byteCname=new byte[myReader.GetString(2).Length];
myReader.GetBytes(2,0,byteCname,0,results.GetString(2).Length);
//want to specify Encoding Here.
Encoding iso = Encoding.GetEncoding("windows-1256");
CNAMA=iso.GetString(byteCname);
}
that is what i m trying
which is giving Specified Cast Invalid when GetBytes is called ...
Plz Help me..
Thanx in advance
Bhaumik
How could I get the correct value