Bug #2345

XML EPG source and unicoded channel names gives problems

Added by Meindert Oldenburger about 8 years ago. Updated almost 8 years ago.

EPG - Grabbers
Target version:
Start date:
Due date:
% Done:


Estimated time:
Found in version:
Affected Versions:


The channel: "Omrop Fryslân" shows up like "Omrop Frysl__n" (also on the file system ".hts/tvheadend/epggrab/xmltv/channels")

After selecting this EPG source in "Channel/EPC" it is not remembering it after restart.

I use Webgrab++ to make the xml file.
<channel id="Omrop Fryslân">
<display-name lang="nl">Omrop Fryslân</display-name>


guide.tgz (50.7 KB) guide.tgz Meindert Oldenburger, 2014-10-07 22:10



Updated by Meindert Oldenburger about 8 years ago

After restart it seems tvheadend remembers the channel "XMLTV: Omrop Fryslân (Omrop Frysl__n)", but this is not always the case ?!


Updated by Piotr Kuchciak about 8 years ago

I also have a problem with no Polish character in EPG. Before update to version 3.9.1733 i have OK polish character.


Updated by Jaroslav Kysela about 8 years ago

Please, attach the EPG source file (in a .zip or other compressed format to not change the encoding)..


Updated by Meindert Oldenburger about 8 years ago

Did the following to wrap the EPG source file
tar cvfz guide.tgz guide.xml


Updated by Jaroslav Kysela about 8 years ago

  • Assignee changed from Adam Sutton to Jaroslav Kysela

Updated by Meindert Oldenburger about 8 years ago

Encoding of the guide.xml file: XML 1.0 document, UTF-8 Unicode (with BOM) text


Updated by Daniel Kenzelmann almost 8 years ago

You should use an ascii name for the "id" attribute without spaces. The actual channel name is specified in the display-name subelement.

See also the xmltv DTD regarding the "channel" element:

Each channel has one id attribute, which must be unique and should
preferably be in the form suggested by RFC2838 (the 'broadcast'
element of the grammar in that RFC, in other words, a DNS-like name
but without any URI scheme).

So your file should look something like this (just make sure the id is specified according to RFC2838):

  <channel id="omrop.fryslan">
    <display-name lang="nl">Omrop Fryslân</display-name>

I am also parsing chinese TV listings without issues, there an example channel entry would be:

<channel id="cctveurope">
 <display-name>CCTV-4 (欧洲)</display-name>

Also available in: Atom PDF