Unicode data in a unicode-only collation or ntext data cannot is sent to clients using db-library (such as ISQL) or ODBC V Ersion 3.7 or earlier

Source: Internet
Author: User
Tags mssql php server

When PHP is connected to SQL Server, the program generates a statement that, when executed by the SQL Server client, can correctly return the results, execute in the program, always return false, and open debugging without any errors. Inadvertently found the error shown in title, the following methods:

  • Chang the version in from/etc/freetds.conf4.2 to 8.0 (if the PHP server is *nix)
  • Client CharSet = GBK

PHP.ini Configuration

Mssql.charset = "UTF-8"


Reference: http://www.php.net/manual/en/function.mssql-query.php query keyword for Unicode data in a unicode-only

https://stackoverflow.com/questions/5414890/mssql-query-issue-in-php-and-querying-text-data/5414970#5414970

Unicode data in a unicode-only collation or ntext data cannot is sent to clients using db-library (such as ISQL) or ODBC V Ersion 3.7 or earlier

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.