hello every guys:
when i use Microsoft .NET Data Provider for mySAP to get data from my ecc5 system in my .net project, i get bad coding for chinese(just replace by a '#'), how can i resolve this problem, my sap logon
is v710, list my test code:
SAPConnection con = new SAPConnection("ASHOST=202.135.88.112;CLIENT=800;SYSNR=00;USER=**;PASSWD=***;LANG=ZH");
con.Open();
SAPCommand cmd = new SAPCommand(con);
cmd.CommandText = "SELECT NAME1 FROM KNA1"
SAPDataReader dr = cmd.ExecuteReader();
do
{
Console.WriteLine("read datatable: " + dr.GetSchemaTable().TableName);
while (dr.Read())
{
string line = "";
for (int i = 0; i < dr.FieldCount; i++)
line = line + "| " + dr.GetString(i);
Console.WriteLine(line);
}
}
while (dr.NextResult());
Console.ReadLine();
*********************when i run the test code, i get a result like below: ************
value of returned datareader: SchemaTable
| #####
| ####2
| #######1
| ####1
| ####2
| #######
| #######
| #######
| #######
| #######
| #######
| ######3
| ######2
| ######3
.......
the '#' repalce a chinese character******************
how can i resolve this problem.
thanks A lot
and by the way, where can i find the develop document of this provider?
Edited by: zhiyong Chen on Feb 9, 2009 10:38 AM