Php inserts data in the Korean txt file, and SQL-Front displays garbled characters-php Tutorial

Source: Internet
Author: User
Php inserts data in the Korean txt file, and SQL-Front displays garbled characters. please help me. I used the php program to insert a Korean txt document, and the array and SQL statements printed on the page are displayed normally. Using iconv (euc-kr, & nbsp; utf-8IGNORE, $ data [name]) & nbsp; for transcoding, changing the UCS-2, ISO-8859-1, etc. can not be displayed normally. Php inserts data in the Korean txt file, and SQL-Front displays garbled characters
Please help. I used the php program to insert a Korean txt document, and the array and SQL statements printed on the page are displayed normally.
Transcode with iconv ('euc-kr ', 'utf-8 // IGNORE', $ data ['name']) and fail to display properly after UCS-2 or ISO-8859-1.

PHP SQL


------ Solution --------------------
I think your original data file is not EUC-KR, but gbk or UTF-8

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.