[vdr] [PATCH] Fix EPG for UPC direct
Klaus Schmidinger
Klaus.Schmidinger at cadsoft.de
Sun Dec 10 11:51:03 CET 2006
Thiemo Gehrke wrote:
> UPC is a provider for middle european countries (Czechia, Hungary and Poland).
> They use iso6937-2 for encoding their EPG data so this looks quite strange in
> the vdr.
> The applied patch does a "remapping" to iso8859-2 so that characters are
> displayed correct. (Currently only tested with Czech and Hungarian, but
> should also work for Polish)
>
> While testing this with the help of an hungarian user, i also found out that
> the the codepage for Hungary must be 8859-2, not -1.
>
> The patch is work by Helmut Auer.
>
> cheers,
> Tim
>
>
> ------------------------------------------------------------------------
>
> --- vdr-1.4.4-vanilla/epg.c 2006-10-28 11:12:42.000000000 +0200
> +++ vdr-1.4/epg.c 2006-11-28 12:39:33.000000000 +0100
> @@ -18,6 +18,165 @@
>
> #define RUNNINGSTATUSTIMEOUT 30 // seconds before the running status is considered unknown
>
> +// UPC Direct / HBO strange two-character encoding. 0xC2 means acute, 0xCF caron.
> +// many thanks to the czechs who helped me while solving this.
> ...
How is their encoding coded in the first byte of the texts?
I can't seem to find an encoding for iso6937-2 in ETSI EN 300 46, section A.2.
Also, what happens if you run such a string through iconv() to convert it
from iso6937-2 to iso8859-2 or UTF-8?
I'm asking because this is how VDR will handle character sets in the next
version.
Klaus
More information about the vdr
mailing list