Hi,
I set the label to contain Chinese, but display garbled code
code like this :
$qrModel = new QrCode(); $qrModel ->setText($text) ->setSize(300) ->setPadding(10) ->setErrorCorrection('high') ->setForegroundColor(['r' => 0, 'g' => 0, 'b' => 0, 'a' => 0]) ->setBackgroundColor(['r' => 255, 'g' => 255, 'b' => 255, 'a' => 0]) ->setLabel($label) ->setLabelFontSize(16) ->setImageType(QrCode::IMAGE_TYPE_PNG); // save it to a file $qrModel->save($filePath);
qr code image:
Hi, I set the label to contain Chinese, but display garbled code code like this :
$qrModel = new QrCode(); $qrModel ->setText($text) ->setSize(300) ->setPadding(10) ->setErrorCorrection('high') ->setForegroundColor(['r' => 0, 'g' => 0, 'b' => 0, 'a' => 0]) ->setBackgroundColor(['r' => 255, 'g' => 255, 'b' => 255, 'a' => 0]) ->setLabel($label) ->setLabelFontSize(16) ->setImageType(QrCode::IMAGE_TYPE_PNG); // save it to a file $qrModel->save($filePath);
qr code image: