Problems with characterset (German Umlaute)
Added by Golgaris G over 11 years ago
Hello All!
I've installed Tvheadend on Ubuntu 12.10 (the current version in the distribution). The configuration was easy and all works.
I get the EPG information for German and Austrian TV over XMLTV (Egon zappt). The problem is, that the system doesn't show the Umlaute in right way.
Linux systems have UTF-8 set as character set. I think that nearly all systems are working with UTF-8.
When I call the grabber program directly (/usr/bin/tv_grab_eu_egon) I get the following XML Header information:
<?xml version='1.0' encoding='utf-8'?> <!DOCTYPE tv SYSTEM "xmltv.dtd"> ...
The output in the shell shows the Umlaute in a correct way. But the TVheadend web configuration page and XBMC shows the text wrong.
Does anybody has an idea what's wrong?
Thanks!
Replies (2)
RE: Problems with characterset (German Umlaute) - Added by Zsolt Németh almost 11 years ago
Hi!
I have the same problem but with hungarian characters. If i ran the tv_grab_huro script i see in the terminal the special characters are replaced with "?". But if i save the tv_grab_huro output to a file with the --output tv.xml directive there is everything all right. And in the TVH web all my EPG data are wrong. I replaced the encoding parameter to UTF-8 in my tv_grab_huro script but the issue remained. How can i have all the spec characters in TVH?
RE: Problems with characterset (German Umlaute) - Added by András Frankovics about 10 years ago
Hello
If I convert the xml's character coding from ISO8859-2 to UTF8, the special characters (á, é, ö...) are displayed fine.
My code looks like this:
tv_grab_huro --output /home/hts/tvguide.xml
iconv -f iso-8859-2 -t utf8 /home/hts/tvguide.xml > /home/hts/tvguide.part
mv /home/hts/tvguide.part /home/hts/tvguide.xml
cat /home/hts/tvguide.xml | nc -U /home/hts/.hts/tvheadend/epggrab/xmltv.sock
Of course, I'm using socket for xmltv, beacuse the built in doesnt work.
I hope it works for you too!