Php inserts data in the Korean txt file, and SQL-Front displays garbled characters
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. Use iconv ('euc-kr ', & nbsp; 'utf-8 // IGNORE', $ data ['name']) & nbsp php to insert data in the Korean txt file, SQL-Front display 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
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.