| 
			
			 | 
		#1 | |
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 4 
				Karma: 10 
				Join Date: Feb 2011 
				
				
				
				Device: Kindle 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Fetch News failing (All strings must be XML compatible
			 
			
			
			Hi all, 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I've been using Calibre to download the RSS feeds from several blogs onto my Kindle into three different groups: Economics, Sociology, and Politics. Today my Economics feed stopped working, while the other two still work. It keeps saying "Python function terminated unexpectedly All strings must be XML compatible: Unicode or ASCII, no NULL bytes (Error Code: 1)." I've searched for these terms and the answers on other threads seem to deal with non-English characters in usernames--this seems unrelated to my issue here. Here is the end of the text: Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			You need to post your recipe if you want help.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004 
				Karma: 177841 
				Join Date: Dec 2009 
				
				
				
				Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			You might want to ask in the Recipes forum when you post your recipe.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | |
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 4 
				Karma: 10 
				Join Date: Feb 2011 
				
				
				
				Device: Kindle 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks for the responses. I made the recipe in basic mode, but when I switch to advanced mode, here is what comes up:  
		
	
		
		
		
		
		
		
		
		
		
		
	
	Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			One of your feeds has a form feed character in its description which is blowing up the XML parser. I'll add a workaround in the next release.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 4 
				Karma: 10 
				Join Date: Feb 2011 
				
				
				
				Device: Kindle 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks for the reply. I'll try eliminating feeds one at a time and see what happens. Thanks for making a great product!
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 2 
				Karma: 10 
				Join Date: Jul 2011 
				Location: Warsaw, Poland 
				
				
				Device: Kindle 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Has this happened already? I'm getting the same issue with the following simple recipe 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Code: 
	class AdvancedUserRecipe1311785189(BasicNewsRecipe):
    title          = u'Blogi'
    oldest_article = 1
    max_articles_per_feed = 100
    feeds          = [(u'Ziemkiewicz', u'http://blog.rp.pl/ziemkiewicz/feed')]
 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			The workaround was for  that specific character, your feed presumably has another invalid character.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 15 
				Karma: 10 
				Join Date: Apr 2011 
				
				
				
				Device: Kindle 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Great collection of Econ blogs, by the way! 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Good luck.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 2 
				Karma: 10 
				Join Date: Jul 2011 
				Location: Warsaw, Poland 
				
				
				Device: Kindle 3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks, Kovid, that's what I thought. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	One more check before I surrender: I trimmed the HTML using the preprocess_regexps leaving only the content <div> section. Does this mean the faulty character is in this section? In other words, is there a way to strip the document from all the risky stuff before any XML parsing starts? I though preprocess_regexps should do the job but apparently it doesn't. BTW, what are the kinds of faulty characters I should be looking for?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			No there's no way to strip the document of all risky characters reliably. If there were, calibre would do it automatically. Incidentally, running your recipe works for me.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#12 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 6 
				Karma: 10 
				Join Date: Sep 2011 
				
				
				
				Device: Kindle DX 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Can someone help me to download the econ blogs that Nuveen has mentioned. It would be a great help for me.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Fetch news | chewi | Recipes | 0 | 11-30-2010 06:09 AM | 
| Unable to fetch any news | charks | Calibre | 4 | 06-14-2010 06:46 PM | 
| Can't Fetch News | Catew | Calibre | 2 | 07-19-2009 08:46 PM | 
| Fetch News | philipdavies | Calibre | 5 | 10-08-2008 05:33 AM | 
| Error in .91 Fetch news | Mitchll | Calibre | 15 | 10-05-2008 05:52 PM |