none
Unsupported charset! error from AseDataAdapter.Fill RRS feed

  • Question

  • I am trying to use Sybase.Data.AseClient to connect to Syabse database and execute a Stored Procedure to get data. I get Unsupported charset! error from AseDataAdapter.Fill. Below is my code

    string strConToSybase = "Data Source='server';Port=8700;Database=db;Uid=user1;Pwd=user1;";

    AseConnection _con = new AseConnection(strConToSybase);

    AseDataAdapter da = new AseDataAdapter("select getdate() CurTime", _con);

     

    DataSet ds = new DataSet();

    da.Fill(ds, "Table");  // I get this message - Unsupported charset!

    Can anyone help me on this.

    Thanks,
    Raman

     

    Friday, February 3, 2012 3:16 PM

Answers

  • Alan, thanks for your reply. It is working now after I added CharSet=utf8; in the connection string.

    Thanks,
    Raman

    • Marked as answer by S Raman Monday, February 6, 2012 5:11 PM
    Monday, February 6, 2012 5:11 PM

All replies