Home  >  Article  >  Backend Development  >  php安插韩文txt文件内的数据,SQL-Front显示乱码

php安插韩文txt文件内的数据,SQL-Front显示乱码

WBOY
WBOYOriginal
2016-06-13 12:49:12987browse

php插入韩文txt文件内的数据,SQL-Front显示乱码
请各位大侠帮忙。我利用php程序插入韩文txt文档,页面打印数组和sql都正常显示。
利用iconv('euc-kr', 'utf-8//IGNORE',$data['name']) 进行转码,换过ucs-2、iso-8859-1等都无法显示正常。

PHP SQL
------解决方案--------------------
我认为你原始的数据文件就不是 EUC-KR 的,而是 gbk 或utf-8 的
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn