illegal character in rss feed from uvic events calendar

25/03/14

Permalink 12:41:25 pm, by sarneil, 137 words, 381 views   English (CA)
Categories: Activity log; Mins. worked: 180

illegal character in rss feed from uvic events calendar

Determined after a couple of hours of testing that a posting in the uvic events calendar contains the control character 0016 (synchronous idle). The constructor for the RSSReader in the hums site reads that in to a string and then attempts to parse the string into an XML structure. The parsing fails so the php process fails so the user sees an empty white page.

I added a line of code to the constructor which strips out all control characters (except carriage return and line feed) after the string is read in, but before it is parsed into XML. That seems to have solved the problem.

I wrote to Dave Wolowicz and suggested that the Rss output from the events calendar should be stripped of control characters that XML doesn't support before being shipped out to the client.

Pingbacks:

No Pingbacks for this post yet...

Update of Humanities Sites

This blog is for work done creating and major updating of departmental and similar sites. Routine text edits etc. are logged in the Depts blog.

Reports

XML Feeds