Incorrect string value error resolution

Source: Internet
Author: User
Tags character set

Incorrect string value

The character selected for MySQL installation is GB2312. Then in the PHP program also has mysql_query ("Set names gb2312");

It is normal to add Chinese and English. But someone will always copy from another website or enter some characters for Wubi fillet input. Then it appears.

Incorrect string value: ' Xa9pxc1xf7xb6xaf ... ' for column ' Pdetails ' at row 1

It is normal to not enter the fillet. Cannot add characters. Everybody help me. How should we solve it? That field is pendetails text gb2312_chinese_ci

Resolution method

Modify the character set of this table from Gb2312_chinese_ci to Gbk_chinese_ci

This is due to character set reasons.

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.