mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-06 22:54:36 -04:00
Set encoding to UTF-8 for EPC QR Codes
This commit is contained in:
parent
9115d2e902
commit
cf84f5b24d
@ -49,9 +49,12 @@ class EpcQrGenerator
|
|||||||
$this->validateFields();
|
$this->validateFields();
|
||||||
|
|
||||||
try {
|
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 '';
|
||||||
}
|
}
|
||||||
return "<svg viewBox='0 0 200 200' width='200' height='200' x='0' y='0' xmlns='http://www.w3.org/2000/svg'>
|
return "<svg viewBox='0 0 200 200' width='200' height='200' x='0' y='0' xmlns='http://www.w3.org/2000/svg'>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user