Modification of the class that PHP reads into EXCEL
After using the EXCEL class provided by other netizens on this site to import data, all codes displayed in MYSQL are श... and so on, and Chinese cannot be displayed. The same is true for me when using it. For this reason, I searched online for a long time. Finally, I synthesized the classes provided by two netizens and solved such problems. Please download and use it!
We are all discussing it. If it infringes the copyright of the original author, please understand! ! ! !
If you don’t agree, I will delete it immediately!
How to use this type is as follows:
require "excel_class.php";
Read_Excel_File("Book1.xls",$return);
for ($i=0;$i
{
for ($j=0;$j
{
echo $return[Sheet1][$i][$j]."|";
}
echo "
";
}
?>
http://www.bkjia.com/PHPjc/631902.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/631902.htmlTechArticleModification of the class that PHP reads into EXCEL. After importing data using the EXCEL class provided by other netizens on this site, All codes displayed in MYSQL are #2358... and so on, and Chinese cannot be displayed. I have used...