Am Sonntag, 15. Mai 2005 19:05 schrieb Ludwig Nussel:
Ludwig Nussel wrote:
Lars Altenhain wrote:
thanks for this patch. Finally the mp3 plugin can display the correct names of the mp3s.
My vdr runs since 2 days with this patch and I have found only a small error :-) If vdr is allows to update the channel names, the names revert back to the ISO8859 encoded version. The transmitted channel names are not converted to utf8 before they are stored in the config data. The attached patch fixes this.
It cannot work this way, you blindly recode iso-8859-1 to utf8. Judging from how xawtv does it each dvb string tells it's encoding. Therefore the central place to recode all strings must be decodeText() in libsi/si.c. That also means that the encoding does not need to be configured via channels.conf.
I've ripped the code from xawtv and put it into libsi. Seems to work fine but someone with non-german stations should probably try it to actually prove that.
For german stations this works so far, but maybe we are just lucky to get our EPG data in the encoding which is the default for the code from xawtv.
While trying to get the text2skin plugin to work with an UTF8 patched vdr I needed to make some changes to the Freetype part of the patch. Attached is the updated UTF-8 patch containing this changes, as well as the changes from Ludwig and a patch for text2skin-1.0.
Due to the changes in the freetype part I also changed the default sizes for the fonts from 16, 12 and 15 to 24, 18 and 22.
Lars