SimpleSoftwareIO / simple-qrcode

An easy-to-use PHP QrCode generator with first-party support for Laravel.
https://www.simplesoftware.io/simple-qrcode
MIT License
2.66k stars 363 forks source link

problems with umlauts in VCARDS #260

Closed Cluster2a closed 1 year ago

Cluster2a commented 1 year ago

Hey, if I am using an umlaut within a vcard and generating the QRcode :

BEGIN:VCARD
VERSION:4.0
PRODID:-//Sabre//Sabre VObject 4.5.0//EN
UID:sabre-vobject-e48beda0-3a29-448d-a253-ef110e528ea6
N:Doe;John;;;
NICKNAME:
ORG:;
ADR;TYPE=WORK:;Bachstraße 1;PLZ;City;;;
NOTE:
END:VCARD
QrCode::encoding('UTF-8')->generate($vCard);

The following QRcode is generated: image

Checking this QRcode with https://zxing.org/w/decode, the QRcode seems to be alright: image

But reading on an android phone will result in an error, and an iPhone will mess up the umlaut: image

Is there any way around this? I am not quite sure where the mistake happens.

alanpilloud commented 1 year ago

@Cluster2a Hello,

I have exactly the same issue. Do you by any chance remember how you solved it ?

Thanks !

alanpilloud commented 1 year ago

I solved it. I simply used vcard v3 instead of v4.