[vdr] Premiere UTF-8 fix for VDR 1.5.1+

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Thu Jun 28 21:42:58 CEST 2007


On 06/28/07 15:41, Stefan Taferner wrote:
> Hi all,
> 
> Here is a small patch for all Premiere watchers who want to use UTF-8
> encoding.
> 
> The patch simply changes the default character set that is used when
> no encoding is broadcasted.
> 
> Kind regards,
> Stefan
> 
> 
> ------------------------------------------------------------------------
> 
> --- libsi/si.c.orig	2007-06-28 14:37:28.000000000 +0200
> +++ libsi/si.c	2007-06-28 14:35:45.000000000 +0200
> @@ -340,5 +340,6 @@
>  // and length are adjusted accordingly.
>  static const char *getCharacterTable(const unsigned char *&buffer, int &length, bool *isSingleByte = NULL) {
> -   const char *cs = "ISO6937";
> +   //   const char *cs = "ISO6937";
> +   const char *cs = "ISO8859-15";
>     if (isSingleByte)
>        *isSingleByte = false;

Well, this might cause problems on channels that do adhere to the
standard and actually broadcast their EPG data in ISO6937.

Maybe somebody should call Premiere and complain to them. After all,
it's them who are not following the standard ;-)

Klaus



More information about the vdr mailing list