UK xmltv listings failing to load (1 Viewer)

niblick

Portal Member
December 18, 2006
29
3
I've recently started getting this error from the xmltv plugin :

2009-02-13 15:37:55.762500 [XmlTvImporter]: XML tv import error loading C:\Data\xmltv\uk.xml err:Invalid character in the given encoding. Line 560, position 38.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)

The character at this position is a '£' - not unusual in UK english text. Also had a problem later with the 'ç' in façade - a bit more unusual in UK english text but it was a BBC Four program.:rolleyes:

If I remove all instances of these characters manually from the xml file, the import finishes normally.

Surprisingly, I don't find many references to this type of error in the forums - is this a known issue or have I missed a config option somewhere to ignore 'foreign' characters?
 

bolders

Portal Pro
February 1, 2007
84
6
Home Country
United Kingdom United Kingdom
Im also getting this problem - have had it for about a week now (was hoping it would sort itself out but so far its stiill broken :( )

Niblick, what software are u using to find the invalid characters and remove them.

bolders
 

niblick

Portal Member
December 18, 2006
29
3
surfermc

I saw that thread before but it doesn't seem to me to relate to the same problem. I have errors due to invalid characters (eg. £, ç ...) in the program descriptions using the xmltv plugin of the TVServer.

The weird thing is that I also grab french TV listings using the french grabber and they import no problem. My problem is, I'm not really sure which part of the process is responsible for making sure the characters are valid - the RT listings, the xmltv grabber or the TVServer plugin - nor what the rules are.

bolders

I've had it for a week or so as well.

I use notepad++ to remove the problematic characters. It makes it easy to get to line number and character position which the TVServer error log gives me. Then I just do a global replace of the character I find there. It would be easier if the error log actually gave you the character it doesn't like but I don't see that anywhere.

Some days this is an iterative process if there are several different characters the plugin doesn't like in the downloaded xml file.

I'm now trying DJBlu's patch (https://forum.team-mediaportal.com/development-91/sky-uk-uk-freesat-epg-43261/)which modifies the built in EPG grabber in the TV server so that it can read the data pushed out by Sky/Freesat for their boxes. If it works well (and so far it looks good), all of us UK users will owe him a big thank you.
 

Users who are viewing this thread

Top Bottom