I'm looking at an open-source PHP program which performs the following transformation to replace double-quote characters in string values:
$text = str_replace("\"", "DQUOTE", $text);
For example, the string Call me "foo".
, after this transformation, would be represented in an icalendar DESCRIPTION field like so:
DESCRIPTION:Call me DQUOTEfooDQUOTE.
My reading of various online documentation (http://www.ietf.org/rfc/rfc2445.txt and its summaries at http://www.kanzaki.com/docs/ical/) indicate that this is incorrect, and the correct representation should be
DESCRIPTION:Call me \"foo\".
What is the correct representation?