[VCARDDAV] Questions about text handling in vCard 4.0 (rev 11)

Daisuke Miyakawa <d.miyakawa@gmail.com> Mon, 05 July 2010 03:49 UTC

Return-Path: <d.miyakawa@gmail.com>
X-Original-To: vcarddav@core3.amsl.com
Delivered-To: vcarddav@core3.amsl.com
Received: from localhost (localhost []) by core3.amsl.com (Postfix) with ESMTP id 4A19C3A6856 for <vcarddav@core3.amsl.com>; Sun, 4 Jul 2010 20:49:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.755
X-Spam-Level: *
X-Spam-Status: No, score=1.755 tagged_above=-999 required=5 tests=[BAYES_50=0.001, HTML_MESSAGE=0.001, MIME_BASE64_TEXT=1.753]
Received: from mail.ietf.org ([]) by localhost (core3.amsl.com []) (amavisd-new, port 10024) with ESMTP id XDiVQDJXsNlr for <vcarddav@core3.amsl.com>; Sun, 4 Jul 2010 20:49:37 -0700 (PDT)
Received: from mail-gx0-f172.google.com (mail-gx0-f172.google.com []) by core3.amsl.com (Postfix) with ESMTP id 6A22C3A6850 for <vcarddav@ietf.org>; Sun, 4 Jul 2010 20:49:37 -0700 (PDT)
Received: by gxk3 with SMTP id 3so667671gxk.31 for <vcarddav@ietf.org>; Sun, 04 Jul 2010 20:49:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=3QNQFDfBbH99rSgdDKfcg4NQAfYIbf70LSk19qayf0U=; b=CcWmfR7hwmc5VwTaAXAHmHyIsm2PQO7p1jsJchp8OYwGwiMjgduyKOh+Nus7nZ7FYb yKp62BwT2rejiQAU9puDhxr6yYE81uPcTWet60flo1kLC1Fn2euyhfL0naqFarcUk+GF rfc7YspHSmADI/xMfJfyyd+u5yL8llu4pBuNM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=P6nlHK1OTZ6qaE1gIWr+i81OxGlB6OEcwjBWNrY3tUbBiFlLIJAabNliy6NULQpVhd fpQMvBqei0KLPQ/rDAw+aE+p/65wZDmhBFPuUhXfEeY56ZxR84NE1P/OEkjxRYKsysxh RE1dPciszgrkVRGsgqb1WiJMcijCApCsrAh/c=
MIME-Version: 1.0
Received: by with SMTP id t17mr2526178aga.147.1278301775212; Sun, 04 Jul 2010 20:49:35 -0700 (PDT)
Received: by with HTTP; Sun, 4 Jul 2010 20:49:35 -0700 (PDT)
Date: Mon, 05 Jul 2010 12:49:35 +0900
Message-ID: <AANLkTik6O1nZvjdDRn1bdGb20xKbWJApIsnwfTJ8BbRa@mail.gmail.com>
From: Daisuke Miyakawa <d.miyakawa@gmail.com>
To: CardDAV <vcarddav@ietf.org>
Content-Type: multipart/alternative; boundary="00163630f44b3a3c69048a9bd3f5"
Subject: [VCARDDAV] Questions about text handling in vCard 4.0 (rev 11)
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 05 Jul 2010 03:49:38 -0000

Hi vCard experts,

Now I'm confused with how to decode characters with backslash in a text
field, like '\t'.

4.1. in vCard 4.0 shows how to encode some characters like line break and
comma, but there's no mention about the following topics developer may
- how a receiver accept string with backslash which is not determined in the
spec (e.g. How "\t\h\i\s\ \i\s\ \a\ \t\e\s\t\n" should be decoded if the
receiver happened to see it?)
- how to handle invisible/control characters valid in Unicode (e.g. tab,
full-width space used in Japanese, etc.) It can be held as is, but I think
it might be better to encode it to something like \xXXXX only when it is not
readable enough.
- How to handle ',', '\,', ';', and '\;' in X- properties (e.g.
"X-EXTRA-SORT-STRING:This,is\, a\;test;\, isn't\;it?"). What to do when some
sender wanted to use splitter (',' or ';') in vCard 4.0.


Daisuke Miyakawa (宮川大輔)