If you know who is sending you the iCAL, you should confirm what is being sent to you. If the sending component is sending you malformed ICAL, then thats what you will get. If you are getting this from google, then something is wrong with the way you are getting data out of the object. In my experience, google does not mess up the RRULE in the gd:recurrence element.
Manipulation of the ICAL string can be tricky and thats why we use the iCal4j project to generate the ICAL string before sending it to the downstream component. If using an open souce project is not feasible, then the component sending you the ICAL needs to have the logic built in to count the octets(bytes) and add a carriage return(\r\n) after 75 bytes and add the rest of the line with a leading space on the next line. HTH. On Sat, Apr 11, 2009 at 8:40 AM, Devang Parekh <[email protected]>wrote: > hi, thanks for replying but your solution is for setting recurrenceData. > But what to do when i receive the object below. > > > > DTEND;TZID=Asia/Calcutta:20090322T110000 > RRULE:FREQ=WEEKLY;WKST=SU;UNTIL=20090801T043000Z;INTERVAL=3;BYDAY=SU,MO,TU, > BEGIN:VTIMEZONE > TZID:Asia/Calcutta > X-LIC-LOCATION:Asia/Calcutta > BEGIN:STANDARD > TZOFFSETFROM:+0530 > TZOFFSETTO:+0530 > TZNAME:IST > DTSTART:19700101T000000 > END:STANDARD > END:VTIMEZONE > > how can i get remaining characters of 3rd line?? > > On Tue, Apr 7, 2009 at 6:18 PM, recurring exceptions < > [email protected]> wrote: > >> I don't think that 75 octets == 75 characters. >> >> Maybe you could try putting the text that is getting lost on the next >> line with a leading space and see if that solves your problem. >> >> If you don't want to worry too much about the amount of text on each line, >> you could try using an open source project like iCal4j. >> >> The way I see your RRULE working out for me is >> -------------- >> RRULE:FREQ=WEEKLY;WKST=SU;INTERVAL=3;UNTIL=20090801T043000Z;BYDAY=SU,MO,T >> U,WE,TH,FR,SA >> --------------- >> >> So, >> try setting the RRULE as below when setting it into recurrence object >> >> ---------------------------- >> "RRULE:FREQ=WEEKLY;WKST=SU;INTERVAL=3;UNTIL=20090801T043000Z;BYDAY=SU,MO,T\r\n" >> + >> " U,WE,TH,FR,SA\r\n" >> >> ---------------------------- >> >> >> --cheers. >> >> >> On Mon, Apr 6, 2009 at 2:26 PM, Devang Parekh >> <[email protected]>wrote: >> >>> ok.. thanks a lot.. means it is not bug at my side. 3rd line of >>> recurrenceObject is of length 75. >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
