i added a function that returns a value from oracle database
with Arabic character set,
but when i run my program the value show up in textbox is with chinese or japanese character like this
"敔瑸潂x"
.The value to be returned is Arabic character. I tried to change the textbox to right to left, but it doesn't help. I tried to change the stored value to english but the same character is returning .
any suggestion please ?
public void Get_Desc()
{
string oradb = "Data Source=schema;User Id=user;Password=pwd;";
string CommandStr = "F_Get_Office_Desc";
using (OracleConnection conn = new OracleConnection(oradb))
using (OracleCommand cmd = new OracleCommand(CommandStr, conn))
{
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("iCode", OracleDbType.Varchar2).Value = Current_code;
cmd.Parameters.Add("oDesc", OracleDbType.Varchar2, 4).Direction = ParameterDirection.ReturnValue;
conn.Open();
cmd.ExecuteNonQuery();
Current_Desc.Text = cmd.Parameters["oDesc"].Value.ToString();
}
}