kazuhikoarase / qrcode-generator

QR Code Generator implementation in JavaScript, Java and more.
https://kazuhikoarase.github.io/qrcode-generator/js/demo/
MIT License
2.1k stars 674 forks source link

UTF-8 German Umalauts | PHP Version #108

Open steelcrush opened 2 years ago

steelcrush commented 2 years ago

I've noticed with german Umalaut characters are not being correctly encoded in the PHP version.

Examples:

Ä = A ä = a

is there any way to display them correctly? Ä = Ä ä = ä

Best Regards Simon

steelcrush commented 2 years ago

I found the solution, you have to decode the data first:

$data = ("ÄÖÜß"); $dataDecode = utf8_decode($data);

$qr->addData($dataDecode); $qr->make(); $qr->printHTML();