用oledb连接linux 或 aix系统上的db2数据库,读出,如果表的字段值为中文,则结果就是乱码
this._conn = new OleDbConnection(String.Format("Provider={0};Hostname={1};Port={2};Protocol={3};Database={4};UID={5};PWD={6};CurrentSchema={7}", this._provider, this._hostNm, this._port, this._protocol, this._database, this._usrId, this._passwd, this._currSchema));
其中this._provider是IBMDADB2,乱码: ÁìÈë ......等
注:读出的内容在label中显示,不是显示在网页上,是在win form上显示