0

I'm trying to generate a QR code that contains contact information in vCard format with a multi-line note field. The QR code can be scanned by android and apple devices and the user can create a contact with the vcard info. This mostly works but the note field is giving me headache. What I want inside the note field:

Line 1
Line 2
...

So the note field consists of two (or more) lines. I tried vcard 2.1, 3.0 and 4.0. Version 2.1 and 3.0 with quoted-printable encoding, 4.0 with /n. It simply does not work, mostly on Android devices. But when I create a contact on my pixel, export it as vcard and import it -> that works and the new lines are still there.

Here are examples for all three versions and a qr code for each.

BEGIN:VCARD
VERSION:2.1
FN:John Doe
NOTE;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:Line 1=0ALine 2=0ALine 3
END:VCARD

vcard2.1

BEGIN:VCARD
VERSION:3.0
FN:John Doe
NOTE;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:Line 1=0ALine 2=0ALine 3
END:VCARD

vcard3.0

BEGIN:VCARD
VERSION:4.0
FN:John Doe
NOTE:Line 1\nLine 2\nLine 3
END:VCARD

vcard4.0

For these examples, I generated the QR codes using goqr.me. I also tried several other QR code generators, but the result is always the same. I'm wondering if I'm missing something fundamental — did I use quoted-printable encoding incorrectly?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.