upcomingevents shortcode has trouble with UTF-8 fields

  • Unknown's avatar

    I was experimenting with the events shortcode using this feed:

    [upcomingevents url="http://lanyrd.com/guides/skepticism/skepticism.ics"]

    When I preview the post, it displays the correct number of events but both the LOCATION and SUMMARY columns are totally blank.

    Here’s a typical event from that feed:

    BEGIN:VEVENT
    SUMMARY;CHARSET=utf-8:Pennsylvania State Atheist/Humanist 2013 Conference
    LOCATION;CHARSET=utf-8:Embassy Suites Philadelphia Airport, 9000 Bartram Ave
    URL:http://lanyrd.com/2013/atheistpa/
    UID:aeacec481a1e7af42dca325f9bc14fa33cf2ecb6
    DESCRIPTION:Unity and Communitynnhttp://lanyrd.com/cpzgg
    DTSTART;VALUE=DATE:20130913
    DTEND;VALUE=DATE:20130916
    GEO:39.883996;-75.249896
    END:VEVENT

    Since DESCRIPTION is displaying correctly in the table of events, it appears to me that this syntax: “;CHARSET=utf-8”, which is used on both SUMMARY and LOCATION, is what is messing up the shortcode.

    That is legal syntax in iCalendar.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Could you please send me the link of the post you are trying to embed that code in?

    Thank you!

  • Unknown's avatar
  • Thanks Tim. I think you’re on the right track.

    I’m checking with our developers on improving our parser to deal with that and I’ve reached out to Lanyrd since the utf-8 isn’t needed. The RFC specifically states that iCal should be in utf-8, so that property parameter shouldn’t be used for regular text like that and is redundant.

    Thanks for your patience.

  • Hi Tim,

    My apologies for the delay. We’ve issued a fix to work around Lanyrd ICS and confirmed using your example on my test site. If you notice any oddities, please do let me know.

    Cheers!

  • The topic ‘upcomingevents shortcode has trouble with UTF-8 fields’ is closed to new replies.