Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/277.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在PHP5.5中读取带有重音字符的Excel文件_Php_Utf 8_Character Encoding_Import From Excel - Fatal编程技术网

在PHP5.5中读取带有重音字符的Excel文件

在PHP5.5中读取带有重音字符的Excel文件,php,utf-8,character-encoding,import-from-excel,Php,Utf 8,Character Encoding,Import From Excel,我试图读取一个.xls文件,并在最基本的级别上在浏览器中输出其中的文本 有些文本包含重音字符。如何让php在浏览器中正确输出它们?目前,埃斯作为一名律师出面� 我在php中尝试了以下方法: header('Content-Type: text/html; charset=utf-8'); 我在HTML中有这样的内容: <meta charset="utf-8" /> 但对我来说都不管用。 谢谢解决方案位于为我使用的php Excel Reader库发布的补丁中。应用补丁的原始软件

我试图读取一个.xls文件,并在最基本的级别上在浏览器中输出其中的文本

有些文本包含重音字符。如何让php在浏览器中正确输出它们?目前,埃斯作为一名律师出面�

我在php中尝试了以下方法:

header('Content-Type: text/html; charset=utf-8');
我在HTML中有这样的内容:

<meta charset="utf-8" />
但对我来说都不管用。
谢谢

解决方案位于为我使用的php Excel Reader库发布的补丁中。应用补丁的原始软件包位于此处: