【发布时间】:2021-04-05 05:02:46
【问题描述】:
我尝试在我的 fpdf 文档中使用 html 箭头,但它不起作用
我尝试了其中的一些代码,但都不起作用,它仅适用于某些实体,例如 © 但是当我想使用↠或→时它不起作用,我不知道为什么。
这是我的代码
$str = "&rarr";
$str = utf8_decode($str);
$str = html_entity_decode($str);
$huha = iconv('UTF-8', 'windows-1252',$str);
$huha = iconv('UTF-8', 'windows-1252', html_entity_decode("→"));
$huha = html_entity_decode("©", ENT_XHTML,"ISO-8859-1");
【问题讨论】:
-
“我不知道为什么” 你认为所有字符都属于 windows-1252 吗?
-
对不起,我只是从互联网上学习教程,所以我需要更改 windows-1252?去什么?
-
ISO-8859-1 也是其中的一部分吗?像windows-1252?因为 ISO-8859-1 也不好用
-
有关标准字体的信息,请参阅this。
-
谢谢你!你解决了这个非常感谢你????