Thread Starter
genweb
(@genweb)
Cool, I´m a PHP programmer, tell me if you need any help to fix this.
Sure, the code is available at https://ww.wp.xz.cn/plugins/quiz-master-next/, try to troubleshoot and send me a pull request.
This option only works if this option is selected in “Options” tab – Should we ask for the user’s name? (Only here for older versions. Use Contact tab for this.)
Thread Starter
genweb
(@genweb)
Thank you very much, I missed that option.
It will fill in the %USER_NAME% var now, but I found another problem related to char encoding.
It will show “RodrÂ-guez” instead of “Rodríguez” in the PDF certificate if you use Spanish characters.
Can I know what file prints/creates the PDF? so I can try to fix the encoding there.
Thanks again!
Thread Starter
genweb
(@genweb)
I fixed it by adding this new line below line 78.
$content = iconv(‘UTF-8’, ‘windows-1252’, $content);
File: qsm-certificate-1.0.0/php/generate-certificate.php
Kind regards
Thanks for the amazing code fix, will push that in production after testing.