Changeset 942
- Timestamp:
- 06/09/06 17:04:38
- Files:
-
- trunk/plagger/lib/Plagger/Plugin/Publish/CHTML.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/lib/Plagger/Plugin/Publish/CHTML.pm
r104 r942 20 20 my ($self, $context) = @_; 21 21 $self->{context} = $context; 22 $self->conf->{encoding} ||= 'shift jis';22 $self->conf->{encoding} ||= 'shift_jis'; 23 23 $self->{id} = time; 24 24 @{$self->{feeds}} = (); … … 123 123 my ($self, $file, $chtml, $symlink) = @_; 124 124 open my $out, ">:encoding($self->{conf}->{encoding})", $file or $self->context->error("$file: $!"); 125 local $PerlIO::encoding::fallback = Encode::FB_HTMLCREF; 125 126 print $out $chtml; 126 127 close $out;
