1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Set encoding to UTF-8 for EPC QR Codes

This commit is contained in:
David Bomba 2022-11-22 09:13:16 +11:00
parent 9115d2e902
commit cf84f5b24d

View File

@ -49,9 +49,12 @@ class EpcQrGenerator
$this->validateFields();
try {
$qr = $writer->writeString($this->encodeMessage());
$qr = $writer->writeString($this->encodeMessage(), 'utf-8');
}
catch(BaconQrCode\Exception\WriterException $e){
catch(\Throwable $e){
return '';
}
catch(\Exception $e){
return '';
}
return "<svg viewBox='0 0 200 200' width='200' height='200' x='0' y='0' xmlns='http://www.w3.org/2000/svg'>