deic-dk / files_accounting

0 stars 0 forks source link

Invoice doesn't like some letters #2

Closed larsnaesbye closed 8 years ago

larsnaesbye commented 8 years ago

invoice

I suppose this is because FPDF does not use UTF-8 encoding (see http://www.fpdf.org/en/FAQ.php#q7 ). We may need to utf8_decode it.

larsnaesbye commented 8 years ago

Attempted fix in test using utf8_decode on $name- @psyllost , do you have a test script for triggering a new PDF?

psyllost commented 8 years ago

You can run those scripts (attached) locally to test it. Just change the output repository and call the createInvoice() with your name and some random values. Or you can delete the entry with your userid in the oc_files_accounting table in db and change line 18 in stats.php to be equal with today.. Hope this helps.

2015-11-10 13:45 GMT+01:00 Lars Næsbye Christensen <notifications@github.com

:

Attempted fix in test using utf8_decode on $name- @psyllost https://github.com/psyllost , do you have a test script for triggering a new PDF?

— Reply to this email directly or view it on GitHub https://github.com/deic-dk/files_accounting/issues/2#issuecomment-155410819 .

Ioanna Psylla

larsnaesbye commented 8 years ago

Thank you - it works now :-)