From 65b17bca5915c45b823d8644b13c4473b3813c06 Mon Sep 17 00:00:00 2001 From: Milan Date: Sun, 17 Oct 2021 21:21:54 +0300 Subject: [PATCH] Add encoding option in query to google API --- lib/Providers/Qr/GoogleChartsQrCodeProvider.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Providers/Qr/GoogleChartsQrCodeProvider.php b/lib/Providers/Qr/GoogleChartsQrCodeProvider.php index 1f8cfad..1118ea7 100644 --- a/lib/Providers/Qr/GoogleChartsQrCodeProvider.php +++ b/lib/Providers/Qr/GoogleChartsQrCodeProvider.php @@ -61,6 +61,7 @@ public function getUrl($qrtext, $size) . '?chs=' . $size . 'x' . $size . '&chld=' . urlencode(strtoupper($this->errorcorrectionlevel) . '|' . $this->margin) . '&cht=' . 'qr' + . '&choe=' . $this->encoding . '&chl=' . rawurlencode($qrtext); } }