php - How to solve Dompdf mb_internal_encoding - Stack Overflow

I am trying to generate a pdf using dompdf which works well on local server (XAMPP) But when i go live

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745660678a4638815.html

相关推荐

  • php - How to solve Dompdf mb_internal_encoding - Stack Overflow

    I am trying to generate a pdf using dompdf which works well on local server (XAMPP) But when i go live

    14小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信