View Single Post
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#180
Originally Posted by magnuslu View Post
Ok, the problem seems to be that gPodder doesn't handle certain special characters in the opml file.
Yes, I just checked it with your file - Python's XML parser seems to have a problem with the file - it's encoded in iso-8859-1 (you can use the "file" utility to do some rough encoding detection - it gives "ISO-8859 English text" for me), and you have to escape the chars there. If you convert the file to utf-8, it works with umlauts as well, and gPodder happily imports it:

Code:
iconv -fiso-8859-1 -tutf-8 Podcasting.opml  > Podcasting2.opml
Alternatively, you can (should?) specify the encoding in the document. You have to add the following line at the very beginning of your OPML file:

Code:
<?xml version="1.0" encoding="iso-8859-1"?>
More info at http://www.opentag.com/xfaq_enc.htm, especially:

Note that the encoding of an XML document is never iso-8859-1 by default.
Maybe you can contact the authors of the application from which you exported the OPML file from and tell them about this bug in their export function - it's not a bug or shortcoming in gPodder, the file is invalid - you could check with any strict XML parser.

Last edited by thp; 2010-08-14 at 11:02.