I've looked into vCard specs linked in Nokia docs as implemtation:
and it uses CRLF, eg:
The paradigm of an electronic business card is related to the concepts of aQuoted-Printable lines of text must also be limited to less than 76 characters. The 76 characters does not include the CRLF (RFC 822) line break sequence
. For example a multiple line LABEL property value of:
123 Winding Way
Any Town, CA 12345
Would be represented in a Quoted-Printable encoding as:
LABEL;ENCODING=QUOTED-PRINTABLE:123 Winding Way=0D=0A=
Any Town, CA 12345=0D=0A=
All literal property names are valid as upper, lower, or mixed case.
ws = 1*(SPACE / HTAB)
; "whitespace," one or more spaces or tabs
wsls = 1*(SPACE / HTAB / CRLF)
; whitespace with line separators
word = <any printable 7bit us-ascii except =:., >
groups = groups "." word
vcard_file = [wsls] vcard [wsls]
vcard = "BEGIN" [ws] ":" [ws] "VCARD" [ws] 1*CRLF
items *CRLF "END" [ws] ":" [ws] "VCARD"
items = items *CRLF item
; these may be "folded"
item = [groups "."] name
[params] ":" value CRLF
/ [groups "."] "ADR"
[params] ":" addressparts CRLF
/ [groups "."] "ORG"
[params] ":" orgparts CRLF
/ [groups "."] "N"
[params] ":" nameparts CRLF
/ [groups "."] "AGENT"
[params] ":" vcard CRLF
it rather sounds (because of using LF - "\n") that orignally vCard was created on Unix-based machine not on windows machine (which uses CRLF by default), can it be the reason?
I was trying to parse a vCard that I received through the network form a Windows server.