Ticket #4389: nuvexport-utf8.patch
File nuvexport-utf8.patch, 1.0 KB (added by , 16 years ago) |
---|
-
mythtv/recordings.pm
15 15 use nuv_export::cli; 16 16 use mythtv::nuvinfo; 17 17 use Date::Manip; 18 use Encode; 18 19 19 20 BEGIN { 20 21 use Exporter; … … 81 82 $file->{'title'} = 'Untitled' unless ($file->{'title'} =~ /\S/); 82 83 $file->{'subtitle'} = 'Untitled' unless ($file->{'subtitle'} =~ /\S/); 83 84 $file->{'description'} = 'No Description' unless ($file->{'description'} =~ /\S/); 85 86 # Convert from utf8 87 $file->{'title'} = decode("utf8", $file->{'title'}); 88 $file->{'subtitle'} = decode("utf8", $file->{'subtitle'}); 89 $file->{'description'} = decode("utf8", $file->{'description'}); 90 84 91 # Get a user-configurable showtime string 85 92 if (arg('date')) { 86 93 $file->{'showtime'} = UnixDate("epoch $file->{'starttime'}", arg($date));