blib/lib/Sledge/Charset/UTF8/I18N.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 6 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 2 | 2 | 100.0 |
pod | n/a | ||
total | 8 | 8 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Sledge::Charset::UTF8::I18N; | ||||||
2 | 1 | 1 | 19610 | use strict; | |||
1 | 1 | ||||||
1 | 34 | ||||||
3 | 1 | 1 | 5 | use base qw(Sledge::Charset::Null); | |||
1 | 1 | ||||||
1 | 746 | ||||||
4 | |||||||
5 | use vars qw($VERSION); | ||||||
6 | $VERSION = '0.01'; | ||||||
7 | |||||||
8 | use Encode; | ||||||
9 | |||||||
10 | sub content_type { | ||||||
11 | return 'text/html; charset=UTF-8'; | ||||||
12 | } | ||||||
13 | |||||||
14 | sub output_filter { | ||||||
15 | my($self, $content) = @_; | ||||||
16 | return Encode::encode("UTF-8", $content); | ||||||
17 | } | ||||||
18 | |||||||
19 | |||||||
20 | 1; | ||||||
21 | __END__ |