Bugzilla – Bug 1392
PodcastBrowser and unknown encoding
Last modified: 2009-09-08 09:18:56 UTC
The podcast http://dagensskiva.com/rss/chronicles-rss.asp doesn't work with the plugin "Podcast Browser". Error message: Failed to parse <http://dagensskiva.com/rss/chronicles-rss.asp> unknown encoding at line 1, column 30, byte 30 at /PerlApp/XML/Parser.pm line 187 This xml file uses the encoding according to: <?xml version="1.0" encoding="windows-1252" ?>
I can reproduce this bug, and I've done some research but have not figured out how to fix it. We ship with the required encoding file, in the CPAN/XML/Parser/Encodings directory. And the variable @XML::Parser::Expat::Encoding_Path includes that directory. The encoding should be found but seems not to be. I've used the debugger to step into XML::Parser::Expat.pm line 475, where ParseString() is called. But this method cannot be stepped into, and it produces the error.
I made dagensskiva.com change their encoding to iso-8859-1, so the rss at http://dagensskiva.com/rss/chronicles-rss.asp now works. The problem with encoding windows-1252 in slimserver still remains though.
Created attachment 440 [details] rss feed with windows encoding Now if we could just get everyone to stop using Windows (encodings)... I'm attaching a copy of the feed with the windows encoding, as it could come in handy for reproducing the bug.
Dave, any chance that you could continue looking at this for 6.1?
We're looking into a few options here - but need to push this off post 6.1
Dave's probably not going to get to this.
I've tested with a bunch of Windows-1252 encoded feeds, and we appear to be doing the correct thing now.
Still seeing this here: http://www.pod-porn.com/xml/rss.xml
I am unable to reproduce this with either the Podcast plugin or RSS ticker. What version of perl is the customer using? What version of SlimServer?
I just reproduced it in the trunk.
Here's my error: 2005-09-19 11:43:41.8244 RssNews failed to parse feed <http://www.pod-porn.com/xml/rss.xml> because: unknown encoding at line 1, column 30, byte 30 at /Users/dean/slim/server/CPAN/XML/Parser.pm line 187 2005-09-19 11:43:50.8565 Podcast: async request: http://www.pod-porn.com/xml/rss.xml 2005-09-19 11:43:51.3561 Podcast: got http://www.pod-porn.com/xml/rss.xml 2005-09-19 11:43:51.3576 Podcast: content type is text/xml 2005-09-19 11:43:51.3626 Podcast: failed to parse feed because: unknown encoding at line 1, column 30, byte 30 at /Users/dean/slim/server/CPAN/XML/Parser.pm line 187
I've done more work to make this not crash as of subversion change 4362 It will be in the 2005-09-20 nightly.