barcode icon indicating copy to clipboard operation
barcode copied to clipboard

Incorrect display of Russian characters

Open NeonTheOneGit opened this issue 5 years ago • 2 comments

When generating the QR-code, if the element name contains Russian characters, when opening the pdf file, question marks are displayed instead of Russian characters. In the QR-code itself, the text is recognized correctly, incorrect only in the QR-code signature. image

NeonTheOneGit avatar Jul 17 '20 06:07 NeonTheOneGit

You need to select a font with unicode support for this in the file /inc/barcode.class.php replace the line: $pdf->selectFont(Plugin::getPhpDir('barcode')."/lib/ezpdf/fonts/Helvetica.afm"); per lines: $pdf->isUnicode = true; $pdf->selectFont('FreeSerif'); for ttf fonts, you also need the bcmath php library in ubuntu, you can install the package: apt-get install php-bcmath

dosgamer avatar Aug 26 '20 13:08 dosgamer

Thanks, it helped. Should we wait for this in the main version, or will it be necessary to fix it during the update?

NeonTheOneGit avatar Sep 01 '20 07:09 NeonTheOneGit