Bug #2345
XML EPG source and unicoded channel names gives problems
0%
Description
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>
<url>http://www.tvgids.nl</url>
</channel>
Files
History
Updated by Meindert Oldenburger about 10 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 10 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 10 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 10 years ago
Did the following to wrap the EPG source file
tar cvfz guide.tgz guide.xml
Updated by Jaroslav Kysela about 10 years ago
- Assignee changed from Adam Sutton to Jaroslav Kysela
Updated by Meindert Oldenburger almost 10 years ago
Encoding of the guide.xml file: XML 1.0 document, UTF-8 Unicode (with BOM) text
Updated by Daniel Kenzelmann over 9 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> <url>http://www.tvgids.nl</url> </channel>
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> <display-name>CCTV4</display-name> </channel>