Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 TCPDF 的“单元格”功能中修复欧元符号?"¤/" <--- 这就是我们得到的
$this->Cell(0, $this->rowHeight(), $data, 0, 1, 'L');
不确定这个问题是否已经解决,但它可能是由 HTML 编码引起的。要么使用
utf8_encode()或者utf8_decode()
utf8_encode()
utf8_decode()
否则,使用这个
mb_convert_encoding(utf8_encode(<YOURCONTENT>), 'HTML-ENTITIES', 'UTF-8');