SourceForge.net
2012-06-08 11:47:47 UTC
Bugs item #2927242, was opened at 2010-01-06 15:27
Message generated for change (Comment added) 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
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);
----------------------------------------------------------------------
Message:
The data is all UTF-8 now.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2010-10-25 14:08
Message:
Ah, sorry, I misread that.
----------------------------------------------------------------------
Comment By: Jan Schneider (yunosh)
Date: 2010-10-25 12: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 10: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
Message generated for change (Comment added) 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: Closed
Resolution: Out of Date
Priority: 5Resolution: Out of Date
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: Jan Schneider (yunosh)
Date: 2012-06-08 04:47Message:
The data is all UTF-8 now.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2010-10-25 14:08
Message:
Ah, sorry, I misread that.
----------------------------------------------------------------------
Comment By: Jan Schneider (yunosh)
Date: 2010-10-25 12: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 10: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