iconv(): Wrong charset, conversion from `auto' to `utf-8//IGNORE' is not allowed

winnyboy5 picture winnyboy5 · Jul 4, 2014 · Viewed 13.3k times · Source

I am using the thujohn/PDF-l4 plugin for my Laravel 4 framework. It works fine in local Windows environment. But when moved to my Centos production environment, the following error throws up for PDF conversion.

"iconv(): Wrong charset, conversion from `auto' to `utf-8//IGNORE' is not allowed"

Checked my php-mbstring, but couldn't find anything wrong.

Answer

Supriya Gopalakrishnan picture Supriya Gopalakrishnan · Nov 28, 2014

please install PHP mbstring and xml extensions on CentOS