[PATCH] Generate subtitle files in UTF8, closes debian bug #697976
Jon Davies
jon at hedgerows.org.uk
Sat Jan 26 04:43:43 EST 2013
Generate subtitle .srt files in UTF8, closes debian bug #697976
The conversion from .ttxt creates representations of characters like
“₤” that M Player, for instance, displays incorrectly.
diff --git a/get_iplayer b/get_iplayer
index db3dc1e..c17b364 100755
--- a/get_iplayer
+++ b/get_iplayer
@@ -7109,7 +7109,7 @@ sub download_subtitles {
# Open subs file
unlink($file);
open( my $fh, "> $file" );
- binmode $fh;
+ binmode($fh, ":utf8");
# Download subs
$subs = main::request_url_retry($ua, $suburl, 2);
More information about the get_iplayer
mailing list