最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - How to solve Dompdf mb_internal_encoding - Stack Overflow

programmeradmin2浏览0评论

I am trying to generate a pdf using dompdf which works well on local server (XAMPP) But when i go live (CPANEL) i get this error **Fatal

error: Uncaught Error: Call to undefined function Dompdf\mb_internal_encoding() in /home/calbrema/public_html/dompdf/vendor/dompdf/dompdf/src/Dompdf.php on line 295 ( ! ) Error: Call to undefined function Dompdf\mb_internal_encoding() in /home/calbrema/public_html/dompdf/vendor/dompdf/dompdf/src/Dompdf.php on line 295**. Here is whats on line 295

$this->mbstringEncoding = mb_internal_encoding();
        mb_internal_encoding('UTF-8'); 

I am using Php 8.3 on shared Cpanel hosting. I checked under php extensions and mbstring is ticked.

How do i solve this please help

I tried adding this extension=php_mbstring.dll in php.ini as stated in one of the forums here which doesn't seem to working at all.

发布评论

评论列表(0)

  1. 暂无评论