About transcoding-php Tutorial

Source: Internet
Author: User
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '000000', 'pm1_64 ', '2017-25', 'hdmi-micro HDMI (0187 M) ', '1', 'foton' at line 1

Two garbled characters are behind the error "Futian"

The problem now is that I don't understand what is special about this "Futian GUI". there are thousands of records.

My transcoding functions: mb_convert_encoding (addslashes ($ u [16]), 'utf-8', 'utf-8, shift-jis, eucjp-win, SJIS-win, shift-jis ');


Inserted content: 249-0810342-5892861 65494678305574 2013-10-13T13: 12: 31 + 00: 00 2013-10-13T13: 12: 31 + 00: 00 2013-10-13T13: 43: 13 + 00: 00 2013-10-16T14: 59: 59 + 00: 00-3 9lvzk1663h5yxvc@marketplace.amazon.co.jp Futian Gui 08022394106 PM000064 XPERIA arc/acro/sans HD ?? HDMI (A pair of cables) To micro HDMI (D pair of cables) are too large? Too many? Why? Why does it happen? Zookeeper 2.5 m Ver 1.4 1 0 1 Standard Futian Guishi yuan City really? 261-4 KAI Middleware? Too many? Objective 2-C ??? 907-0002 JP


Is there any way to solve the current problem?


Reply to discussion (solution)

Iconv ("UTF-8", "GB231 // IGNORE", $ text );

Iconv ("UTF-8", "GB2312 // IGNORE", $ text );

Do not transcode first
Echo base64_encode ($ u [16]);
Post result

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.