Chinese garbled?
Posted: Mon 23 Dec 2019 05:24
i am using the newest devart.data.oracle (9.9.887).
the oracle db is 11g,i have made a test below:(i removed the license key)
OracleConnectionStringBuilder csb = new OracleConnectionStringBuilder();
csb.Direct = true;
csb.Server = "153.153.153.xxx";
csb.Port = 1521;
csb.Sid = "docare";
csb.UserId = "clinic";
csb.Password = "clinic";
csb.Unicode = true;
csb.LicenseKey = "...";
OracleConnection conn = new OracleConnection(csb.ConnectionString);
conn.Open();
string sql = "select t.NAME from view_cpc_patient_info t where rownum<=1";
var command = conn.CreateCommand(sql);
var reader = command.ExecuteReader();
reader.Read();
var value = reader.GetString(0);
return value;
when the result is simple-chinese, will be "??????"?
How to deal with it?i am very worried about this problem
the oracle db is 11g,i have made a test below:(i removed the license key)
OracleConnectionStringBuilder csb = new OracleConnectionStringBuilder();
csb.Direct = true;
csb.Server = "153.153.153.xxx";
csb.Port = 1521;
csb.Sid = "docare";
csb.UserId = "clinic";
csb.Password = "clinic";
csb.Unicode = true;
csb.LicenseKey = "...";
OracleConnection conn = new OracleConnection(csb.ConnectionString);
conn.Open();
string sql = "select t.NAME from view_cpc_patient_info t where rownum<=1";
var command = conn.CreateCommand(sql);
var reader = command.ExecuteReader();
reader.Read();
var value = reader.GetString(0);
return value;
when the result is simple-chinese, will be "??????"?
How to deal with it?i am very worried about this problem