I was having trouble with special characters (á, é, í, ó, ú, ñ) when prinitng a PDF report.
I ended up replacing the last line of the function nuPrintField at the nurunpdf.php file
from:
Code: Select all
$PDF->MultiCell($width, $height, implode("\n", $contents->lines), $borderWidth == 0 ? 0 : 1, $textAlign, true);
Code: Select all
$text = implode("\n", $contents->lines);
$text = utf8_decode($text);
$PDF->MultiCell($width, $height, $text, $borderWidth == 0 ? 0 : 1, $textAlign, true);
Kind regards,
Fike