最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

php - How to solve Dompdf mb_internal_encoding - Stack Overflow

matteradmin9PV0评论

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.

Post a comment

comment list (0)

  1. No comments so far