Re: unicode support (chinese)

"James K. Lowden" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.