Discussion:
[Xmltv-devel] [ xmltv-Bugs-2927242 ] _eu_epgdata: wrong charset
SourceForge.net
2011-08-27 20:49:56 UTC
Permalink
Bugs item #2927242, was opened at 2010-01-07 00:27
Message generated for change (Settings changed) made by yunosh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=424135&aid=2927242&group_id=39046

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: tv_grab_eu_epgdata
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jan Schneider (yunosh)
Assigned to: Jan Schneider (yunosh)
Summary: _eu_epgdata: wrong charset

Initial Comment:
The data is CP1252 encoded, not ISO-8859-1 encoded. To fix this, just replace the two occurences of ISO with the CP counterpart:

--- tv_grab_eu_epgdata 2009-12-10 01:38:04.000000000 +0100
+++ /usr/bin/tv_grab_eu_epgdata 2010-01-07 00:03:10.000000000 +0100
@@ -219,7 +219,7 @@

my $result;
my $configwriter = new XMLTV::Configure::Writer( OUTPUT => \$result,
- encoding => 'ISO-8859-1' );
+ encoding => 'CP1252' );
$configwriter->start( { grabber => 'tv_grab_eu_epgdata' } );
$configwriter->write_string( {
id => 'pin',
@@ -257,7 +257,7 @@
die "ERROR: cannot write to $opt->{output}: $!" if not defined $fh;
$w_args{OUTPUT} = $fh;
}
-$w_args{encoding} = 'ISO-8859-1';
+$w_args{encoding} = 'CP1252';

our $writer = new XMLTV::Writer(%w_args);



----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2010-10-25 23:08

Message:
Ah, sorry, I misread that.

----------------------------------------------------------------------

Comment By: Jan Schneider (yunosh)
Date: 2010-10-25 21:58

Message:
This has nothing to do with output, this is just about giving any XML
processor a charset hint. You process this data into the charset you need
anyway. It's not like you're displaying the XML content anywhere.

----------------------------------------------------------------------

Comment By: Ben Bucksch (benb)
Date: 2010-10-25 19:22

Message:
Please don't output Microsoft charsets. If the input is in that charset, we
should convert.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=424135&aid=2927242&group_id=39046
Loading...