thujohn / pdf-l4

Dompdf for Laravel 4
MIT License
228 stars 72 forks source link

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

Open montes2012 opened 10 years ago

montes2012 commented 10 years ago

I got this error

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

Route::get('generate', function()
{
    $pdf = App::make('dompdf');
$pdf->loadHTML('<h1>Test</h1>');
return $pdf->stream();
});
cinco-de-mauro commented 10 years ago

@montes2012 I had the same issue and installing the php mbstring extension fixed it.

Hope that help!