Bug#561834: vdradmin-am and UTF8

Johan Thelmén jth at home.se
Sat Feb 20 14:33:05 UTC 2010


>> So I have now changed LANG = in /var/lib/vdradmin-am/vdradmind.conf to LANG = sv_SE  and that fixed the nameofday
>Ok, I think I see the problem. vdradmin uses an unusual way to determine, if utf-8 should be used. The charset is read from the gettext translation, and as there is no Swedish translation (feel free to provide one!), the html-encoding used is always iso8859-1

Yes, maybe I will translate at a later time. But not everyone want everything in Swedish but still want to have the names handled correctly.

With this new version using LANG = sv_SE in vdradmind.conf, it will show up wrongly. But it will now work without the LANG defined so I removed that setting witch is the default.

>I did a quick test with sv_SE.UTF-8 and already forwarded the patches upstream, but it would be nice, if you could test this too and let me know, if it fixes your problems.

Yes, thank you! It fixes the current problems, also the one with the recordings.


How about using UTF-8 as standard web content encoding and then translations could change if something else is needed. Naturally iso8859-1 and others would have to be supported for sending correct coding to vdr but I see no big reason to support browsers that do no handle uft8 at this time. I still propose a wishlist to change the default web content-coding to UTF-8 and then allow for translations to change it if needed.

~cat channels.conf | wc -l
6366

With a one antenna and a satellite dish and many channels (not everyone viewable) , not every name and description fits into iso8859-1. I still do see channel-names that still look weird with the black diamond shape with the ? inside. Some of the errors is probably the channelcoding inside vdr but I think it shows the reason for a change. It is now translating everything from UTF8 to iso8859-1 only to show it on web pages and then back into UTF8 for vdr when this is not really needed. I guess this is another request that we should not handle in this bug, but it is related.

-- 
Johan Thelmén





More information about the pkg-vdr-dvb-devel mailing list