Changeset 1306

Show
Ignore:
Timestamp:
08/14/06 11:00:46
Author:
miyagawa
Message:

utf8 off url even if YAML is utf-8 decoded. Fixes #370

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Subscription/Config.pm

    r547 r1306  
    33use base qw( Plagger::Plugin ); 
    44 
     5use Encode; 
    56use Plagger::Tag; 
    67 
     
    2425            $config = { url => $config }; 
    2526        } 
     27 
     28        # file:// URL doesn't work with UTF-8 flag on Win32 
     29        Encode::_utf8_off($config->{url}); 
     30 
    2631        my $feed = Plagger::Feed->new; 
    2732        $feed->url($config->{url}) or $context->error("Feed URL is missing");