Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print (to PDF) Fails with 'invalid UTF-8 chars' #201

Closed
dchurch24 opened this issue Nov 21, 2013 · 2 comments
Closed

Print (to PDF) Fails with 'invalid UTF-8 chars' #201

dchurch24 opened this issue Nov 21, 2013 · 2 comments

Comments

@dchurch24
Copy link

Hi, when trying to print from a 1.8 fresh install, the following appears.

I tested this in both Chrome and Firefox. There are no unusual characters in the text.

If I print the default 'osTicket Installed!' ticket, then it prints just fine.

Error text:
#0 /home/[_]/www/ticket/upload/include/mpdf/mpdf.php(3539): mPDF->purify_utf8_text(Object(PersonsName)) #1 /home/dave/www/ticket/upload/include/class.pdf.php(209): mPDF->WriteCell(55.000777777778, 7, Object(PersonsName), 1, 0, 'L', true) #2 /home/[__]/www/ticket/upload/include/class.pdf.php(44): Ticket2PDF->print() #3 /home/[**]/www/ticket/upload/include/class.ticket.php(1651): Ticket2PDF->Ticket2PDF(Object(Ticket), 'A4', NULL) #4 /home/dave/www/ticket/upload/scp/tickets.php(588): Ticket->pdfExport('A4', NULL) #5 {main}mPDF error: Text contains invalid UTF-8 character(s)

The ticket I attempted to print has 18 fields in a custom form, 14 of which are checkboxes. The other 4 are text. There are no 'odd' characters in the text fields.
I can provide this information to you via email if you need it.

I have the date formats set up as d/m/y (not sure if this will make a difference, but I thought it worth mentioning).

@dchurch24
Copy link
Author

I have just discovered that this only occurs on Closed tickets. I re-opened this particular ticket on a hunch, clicked Print and it worked fine.

@greezybacon
Copy link
Contributor

This is fixed with #204. Thanks for reporting it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants