Fix the Flex connection PHP service access MySQL garbled problem

Source: Internet
Author: User

Recently in the attempt to flex the Remote Access Service data (RAS) feature, mainly to learn the operation of the database, this way, perhaps next time to do the website or software, maybe I can write my own backstage AH

Who knows I have not begun to know, fell into the garbage in the hole (apprenticeship first Die (┬_┬)), I confirm that the default character set of the table is UTF8 and sent through UTF-8 encoding query,

But it's still useless. Then finally found the problem is on the connection, before sending the database command to execute the following sentence:

SET NAMES ' utf8′;

Yes,-_-| | |

Well, I don't know if we have a better solution.

= = View the Detailed code example: http://www.chenlinsheng.com/?p=1135

Fix the Flex connection PHP service access MySQL garbled problem

Related Article

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.