X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/54c320d4bbbdafdf74ba2256d497702d309711b8..5c72da9e7a22dd36d3b231e4ab72578fa7c44860:/source.plp diff --git a/source.plp b/source.plp index f98c0ec..469f49e 100644 --- a/source.plp +++ b/source.plp @@ -85,6 +85,7 @@ else { print "
\n"; foreach (@$parsed) { my ($type, $contents) = @{$_}; + $contents = Encode::decode_utf8($contents); my $tag = $type && ($TYPETAG{$type} || 'span'); my $arg = ''; print "<$tag$arg class=\"sy-\l$type\">" if $tag; @@ -95,7 +96,7 @@ else { if (!$type and $contents =~ s/^(\s*)([A-Z]\w+(?:::\w+)+)(?![^;\s])//) { printf '%s%s', $1, "/source/$2", $2; } - print Text::VimColor::_xml_escape(Encode::decode_utf8($contents)); + print Text::VimColor::_xml_escape($contents); print "$tag>" if $tag; } print "\n";