Hello,
I am using 2.5.0.0 and am running into a problem when extracting text from iCal files using the GetAppointmentText() method.
The problem has to do with the \r\n found in text. The header is correctly extracted, but in the description, the backslashes are being escaped out. This results in the text not being formatted correctly. For example, I have the following appointment with 3 lines of description:
This is a test appointment
This is a couple of lines down.
More lines down
Test
Test
Test
The appointment looks fine in outlook, but once text is extracted, the description looks like:
Title: This is a test Subject
StartTime: Monday, February 04, 2013 4:00:00 PM
EndTime: Monday, February 04, 2013 4:30:00 PM
Time Zone: America/Phoenix
Location: Test Location
*~*~*~*~*~*~*~*~*~*
Description: This is a test appointment\n\nThis is a couple of lines down.\n\nMore lines down.\n\nTest\n\nTest\nTest\n\n
I can upload a sample of this, but it happens with any appointment and you should have no trouble duplicating the behavior.
Looking at the text coming back from the GetAppointmentText() method call, I can see the newline char being escaped out by adding a backslash to in front of each backslash.
Is this by design?
Thanks,