我正在尝试在 php 中导出 excel 表。一切都很好,但德语字符不起作用
我的标题是这样的:
header("Pragma: public");
header("Expires: 0");
header("Content-Type:application/vnd.ms-excel; charset=utf-8");
header("Content-type:application/x-msexcel; charset=utf-8");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Content-Disposition: attachment;filename=report.xls");
header("Content-Transfer-Encoding: binary ");
在 html 实时页面中,它显示德语字符 n utf8,ßäöü
但是当我导出为 excel 然后在 excel 表中它就像ßäöü
为什么?