Changeset 1701

Show
Ignore:
Timestamp:
09/25/06 12:05:48
Author:
cheebow
Message:

Publish::PalmDoc?: fixed Garbled characters of feed title

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Publish/PalmDoc.pm

    r1173 r1701  
    4040        my $filename = $prefix . '-' . $feed_count . '.pdb'; 
    4141        my $outfile = File::Spec->catfile($path, $filename); 
    42          
    43         my $doc = Palm::PalmDoc->new({OUTFILE=>$outfile, TITLE=>$feed->title}); 
     42        my $title = encode("sjis", $feed->title); 
     43        my $doc = Palm::PalmDoc->new({OUTFILE=>$outfile, TITLE=>$title}); 
    4444        $doc->compression(1); 
    4545        $doc->body($text);