Formatting newlines using ENCODING=QUOTED-PRINTABLE
Posted on 2006-06-06
In the following C# code - I'm writing to a vCalendar the following information the below line works fine however the street, city, state and zip all appear on the same line.
Response.Write("DESCRIPTION;ENCODING=QUOTED-PRINTABLE:" + strDescription + strStreet + strCity + strState + strPostalCode + "\n");
How can I create this so each item is on a seperate line - when I wrote this line like the following:
Response.Write("DESCRIPTION;ENCODING=QUOTED-PRINTABLE:" + strDescription + "\n" + strStreet + "\n" + strCity + "\n" + strState + "\n" + strPostalCode + "\n");
I don't get any compile errors but when I click the link to add the item to my calendar - I get a cannot import vCalendar error then it says:
This error can appear if you have attempted to save a recurring Lunar appointment in iCalendar format.
To avoid this error, set the appointment option to Gregorian instead of Lunar.