Skip to Content.
Sympa Menu

freetds - Re: [freetds] unicode support (chinese)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] unicode support (chinese)
  • Date: Mon, 4 Aug 2008 10:39:26 -0400

Van Shuka wrote:
>
> However binding this parameter with:
>
> sqlError = SQLBindParameter(sqlStmt, 1, SQL_PARAM_INPUT,
> SQL_C_WCHAR, SQL_WVARCHAR, 50, 0,
> &chineseChar, sizeof(chineseChar), &chineseCharInd);
>
> I'm getting the error state=HY004, [FreeTDS][SQL Server]Invalid data
> type

Binding to UCS-2 encoding is not supported. As of now, you should use
UTF-8.

HTH.

--jkl





Archive powered by MHonArc 2.6.24.

Top of Page