Zendframework Chinese fields are filtered, and mysql Chinese fields cannot be obtained. both English and numerical fields are supported.

Source: Internet
Author: User
The Chinese fields of zendframework are filtered, and mysql Chinese fields cannot be obtained. The English and digital fields can both be IndexController. php controller, which uses Chinese fields for filtering and cannot retrieve the PHPcode & lt ;? Phprequire_once 'zendframework Chinese field is used for filtering. mysql Chinese fields cannot be obtained. both English and numerical fields are supported.
The following is the IndexController. php controller part. this part uses Chinese fields for filtering and records cannot be retrieved.
PHP code
  
  View-> title = 'aaa'; $ goods = new goods (); $ dbs = $ goods-> getAdapter (); // the data returned by the adapter query is an array $ cname = "Sony cost-effective getting started SLR A580 SLR camera [demo data ]"; $ res = $ dbs-> query ("select * from shopnc_goods where goods_name = ". $ dbs-> quote ($ cname ). "limit 0, 9")-> fetchAll (); echo"
";            print_r($res);            echo "
"; Exit ();}}


------ Solution --------------------
Check whether this string exists in the table.
Check whether the encoding is correct.

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.