Taiki
Taiki

Reputation: 219

vCard 4.0 doesn't display correctly, with labels ignored and wrong character decoding, among other things

I have created a vCard 4.0 file with a text editor according to RFC 6350 by IETF. It is simple, and looks kind of like this:

BEGIN:VCARD
VERSION:4.0
KIND:individual
FN:René Descartes
N:Descartes;René;;;
TITLE:Façade Engineer
ADR;
  GEO="geo:46.975308,0.699597";
  LABEL="Headquarters":
  ;;29 Rue Descartes;;Descartes;37160;France
TEL;VALUE=uri;TYPE=home:tel:+33247597919
END:VCARD

The file is saved as somename.vcf (with CRLF and in UTF-8) and inspected on my iOS/macOS devices. However, the display of the file has many issues.

It is as if vCard 4.0 is not supported at all. Or did I make any mistakes?

The screenshot is attached below.

vCard example

Upvotes: 4

Views: 3257

Answers (1)

Michael
Michael

Reputation: 35331

  • Like you suggested, it looks to me like the client does not support vCard version 4. For example, URI-formatted telephone numbers are only supported by version 4, which might explain why it is not rendering the phone number properly. Try using a version 3 vCard.
  • Your ADR property is formatted strangely. I might trying putting it all on one line to see if that makes any difference. If your intent is to make use of line folding, each additional line must be prefixed with a single space according to the RFC. You are using two spaces.

Upvotes: 4

Related Questions