vCard 4.0 RFC 6350说属性参数值中的换行符必须编码为 \n (至少对于 ADR 属性的 LABEL 参数):
The property can also include a "LABEL" parameter to present a
delivery address label for the address. Its value is a plain-text
string representing the formatted address. Newlines are encoded
as \n, as they are for property values.
ADR;GEO="geo:12.3457,78.910";LABEL="Mr. John Q. Public, Esq.\n
Mail Drop: TNE QB\n123 Main Street\nAny Town, CA 91921-1234\n
U.S.A.":;;123 Main Street;Any Town;CA;91921-1234;U.S.A.
但是 vCard 4.0 RFC 6350 由'Parameter Value Encoding in iCalendar and vCard' RFC 6868更新,其中说:
formatted text line breaks are encoded into ^n (U+005E, U+006E)
GEO;X-ADDRESS="Pittsburgh Pirates^n115 Federal St^nPitt
sburgh, PA 15212":geo:40.446816,-80.00566
being used
如何将 vCard 4.0 参数值中的换行符编码为 \n 或 ^n?