iOS camera: detect QR code with vCard 4.0

Hello.

I have a problem with the built-in QR code detection of a vCard 4.0 in iOS.

As described in https://tools.ietf.org/html/rfc6350 vCard Version 4.0 is always encoded with UTF-8. But it seems that the built-in QR code reader of iOS isn't able to decode the special characters correctly. Or am I missing something?


Here is an example. Encode it with any QR code generator in the Internet and point your iOS Camera app at it. You will see that all special characters are not displayed correctly.


BEGIN:VCARD

VERSION:4.0

N:T€st;Björn

ORG:ÖÜÄ

TEL;CELL:+12 (34) 567890

ADR:;;Blà St.;Blè Town;;12345;ç-Land

URL:https://www.test123.com

EMAIL;WORK;INTERNET:test@test123.com

END:VCARD

This is just a workaround, but VCard 3.0 is parsed correctly.

BEGIN:VCARD
VERSION:3.0
N:T€st;Björn
ORG:ÖÜÄ
TEL;CELL:+12 (34) 567890
ADR:;;Blà St.;Blè Town;;12345;ç-Land
URL:https://www.test123.com
EMAIL;WORK;INTERNET:test@test123.com
END:VCARD

Hello,

The soluction is to force the encode, your code must be like this: BEGIN:VCARD VERSION:4.0 N;CHARSET=utf-8:T€st;Björn ORG:ÖÜÄ TEL;CELL:+12 (34) 567890 ADR;CHARSET=utf-8:;;Blà St.;Blè Town;;12345;ç-Land URL:https://www.test123.com EMAIL;WORK;INTERNET:mailexample END:VCARD

I hope that it solve your issue

iOS camera: detect QR code with vCard 4.0
 
 
Q