mb_convert_encoding error: Call to undefined function mb_convert_encoding()

后端 未结 2 701
-上瘾入骨i
-上瘾入骨i 2021-01-11 14:18

I am currently writing a PHP function but when the complete script is executed I am getting an error:

Error:

Call to undefined function mb_convert_en         


        
相关标签:
2条回答
  • 2021-01-11 14:34

    On Windows, uncomment the following line in php.ini, and restart the Apache server:

    extension=mbstring
    

    If you still get the error afterwards, make sure that what you see is not cached response.

    0 讨论(0)
  • 2021-01-11 14:39

    You need to install the extension. It depends on of your operating system, here are some examples:

    sudo apt-get install php-mbstring  # Debian, Ubuntu
    sudo yum install php-mbstring  # RedHat, Fedora, CentOS
    
    0 讨论(0)
提交回复
热议问题