[SOLVED] Wrtitehtml e report pdf

Hello,
I would like to write a text with a HTMLeditor field and create a PDF with the text typed.
I’m trying with TCPDF but I have many problems to intercept the special characters that block the function wrtitehtml.
I also saw that if I insert empty lines the wrtitehtml goes into error and no text writes.
Does anyone have suggestions?
Does it work better with a scriptcase report?
Thank you.

I solved it by myself by finding the function
sc_convert_encoding($html, “UTF-8”, $_SESSION[‘scriptcase’][‘charset’]);